{"id":"GHSA-q5fh-2hc8-f6rq","summary":"Ray dashboard DELETE endpoints allow unauthenticated browser-triggered DoS (Serve shutdown / job deletion)","details":"### Summary\n\n  Ray’s dashboard HTTP server blocks browser-origin POST/PUT but does not cover DELETE, and key DELETE endpoints are unauthenticated by default. If the dashboard/agent is reachable (e.g., --dashboard-host=0.0.0.0), a web page via DNS rebinding or same-network access can\n  issue DELETE requests that shut down Serve or delete jobs without user interaction. This is a drive-by availability impact.\n\n  ### Details\n\n  - Middleware: python/ray/dashboard/http_server_head.py#get_browsers_no_post_put_middleware only checks POST/PUT via is_browser_request (UA/Origin/Sec-Fetch heuristics). DELETE is not gated.\n  - Endpoints lacking browser protection/auth by default:\n      - python/ray/dashboard/modules/serve/serve_head.py: @routes.delete(\"/api/serve/applications/\") calls serve.shutdown().\n      - python/ray/dashboard/modules/job/job_head.py: @routes.delete(\"/api/jobs/{job_or_submission_id}\").\n      - python/ray/dashboard/modules/job/job_agent.py: @routes.delete(\"/api/job_agent/jobs/{job_or_submission_id}\") (not wrapped with deny_browser_requests either).\n  - Dashboard token auth is optional and off by default; binding to 0.0.0.0 is common for remote access.\n\n  ### PoC\n\n  Prereqs: dashboard reachable (e.g., ray start --head --dashboard-host=0.0.0.0), no token auth.\n\n  1. Start Serve (or have jobs present).\n  2. From any browser-reachable origin (DNS rebinding or same-LAN page), issue a DELETE fetch:\n\n```  \nfetch(\"http://\u003cdashboard-host\u003e:8265/api/serve/applications/\", {\n    method: \"DELETE\",\n    headers: { \"User-Agent\": \"Mozilla/5.0\" }  // browsers set this automatically\n  });\n```\n\n  Result: Serve shuts down.\n  3) Similarly, delete jobs:\n\n ` fetch(\"http://\u003cdashboard-host\u003e:8265/api/jobs/\u003cjob_or_submission_id\u003e\", { method: \"DELETE\" });`\n ` fetch(\"http://\u003cdashboard-agent\u003e:52365/api/job_agent/jobs/\u003cjob_or_submission_id\u003e\", { method: \"DELETE\" });`\n\n  Browsers will send the Mozilla UA and Origin/Sec-Fetch headers, but DELETE is not blocked by the middleware, so the requests succeed.\n\n  ### Impact\n\n  - Availability loss: Serve shutdown; job deletion. Triggerable via drive-by browser requests if the dashboard/agent ports are reachable and auth is disabled (default).\n  - No code execution from this vector, but breaks isolation/trust assumptions for “developer-only” endpoints.\n  \n### Fix\nThe fix for this vulnerability is to update to Ray 2.54.0 or higher. \n\nFix PR: https://github.com/ray-project/ray/pull/60526","aliases":["CVE-2026-27482","PYSEC-2026-2271"],"modified":"2026-09-10T03:50:59.596811106Z","published":"2026-02-20T21:15:25Z","database_specific":{"github_reviewed_at":"2026-02-20T21:15:25Z","nvd_published_at":"2026-02-21T10:16:12Z","cwe_ids":["CWE-306","CWE-396"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/ray-project/ray/security/advisories/GHSA-q5fh-2hc8-f6rq"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-27482"},{"type":"WEB","url":"https://github.com/ray-project/ray/pull/60526"},{"type":"WEB","url":"https://github.com/ray-project/ray/commit/0fda8b824cdc9dc6edd763bb28dfd7d1cc9b02a4"},{"type":"PACKAGE","url":"https://github.com/ray-project/ray"},{"type":"WEB","url":"https://github.com/ray-project/ray/releases/tag/ray-2.54.0"}],"affected":[{"package":{"name":"ray","ecosystem":"PyPI","purl":"pkg:pypi/ray"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54.0"}]}],"versions":["0.1.1","0.1.2","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.4.0","0.5.0","0.5.2","0.5.3","0.6.0","0.6.1","0.6.2","0.6.3","0.6.4","0.6.5","0.6.6","0.7.0","0.7.1","0.7.2","0.7.3","0.7.4","0.7.5","0.7.6","0.7.7","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.8.7","1.0.0","1.0.1","1.1.0","1.10.0","1.11.0","1.11.1","1.12.0","1.12.1","1.13.0","1.2.0","1.3.0","1.4.0","1.4.1","1.5.0","1.5.1","1.5.2","1.6.0","1.7.0","1.7.1","1.8.0","1.9.0","1.9.1","1.9.2","2.0.0","2.0.1","2.1.0","2.10.0","2.11.0","2.12.0","2.2.0","2.20.0","2.21.0","2.22.0","2.23.0","2.24.0","2.3.0","2.3.0rc0","2.3.1","2.30.0","2.31.0","2.32.0","2.32.0rc0","2.33.0","2.34.0","2.35.0","2.36.0","2.36.1","2.37.0","2.38.0","2.39.0","2.4.0","2.40.0","2.41.0","2.42.0","2.42.1","2.43.0","2.44.0","2.44.1","2.45.0","2.46.0","2.47.0","2.47.1","2.48.0","2.49.0","2.49.1","2.49.2","2.5.0","2.5.1","2.50.0","2.50.1","2.51.0","2.51.1","2.51.2","2.52.0","2.52.1","2.53.0","2.6.0","2.6.1","2.6.2","2.6.3","2.7.0","2.7.0rc0","2.7.1","2.7.2","2.8.0","2.8.1","2.9.0","2.9.1","2.9.2","2.9.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-q5fh-2hc8-f6rq/GHSA-q5fh-2hc8-f6rq.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:H"}]}