{"answers":{"affected":"3 open source packages ship an affected version, including starlette.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-62727 exists.","fix":"Upgrade starlette to 0.49.1 or later.","what":"CVE-2025-62727 is a high-severity denial of service vulnerability in Kludex starlette, published on 28 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-62727 and fix it if it is affected.\n\nWhat it is: CVE-2025-62727 is a high-severity denial of service vulnerability in Kludex starlette, published on 28 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-62727 exists.\n\nAffected packages and fixed versions:\n- starlette (PyPI): affected from 0.39.0; fixed in 0.49.1\n- starlette (PyPI): affected from 0.39.0; fixed in 0.49.1\n- starlette (PyPI): affected from 0.39.0; fixed in 0.49.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-62727/ (Markdown: https://insights.sbomify.com/CVE-2025-62727/index.md)","id":"CVE-2025-62727","markdown":"https://insights.sbomify.com/CVE-2025-62727/index.md","name":"CVE-2025-62727","record":{"aliases":["CLEANSTART-2026-DA26043","CLEANSTART-2026-EZ52144","DEBIAN-CVE-2025-62727","ECHO-fc38-da22-1afb","GHSA-7f5h-v6xp-fcq8","MINI-ggwr-cwxw-xxwx","MINI-wph4-w9q3-6mp2","PYSEC-2026-1942","ROOT-APP-PYPI-CVE-2025-62727","UBUNTU-CVE-2025-62727","openSUSE-SU-2025:15696-1","openSUSE-SU-2026:10109-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Python ASGI framework","requires_auth":"none","summary":"An unauthenticated attacker can cause CPU exhaustion and denial of service in Starlette applications by sending crafted HTTP Range headers to file-serving endpoints.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"description":"Starlette is a lightweight ASGI framework/toolkit. Starting in version 0.39.0 and prior to version 0.49.1 , an unauthenticated attacker can send a crafted HTTP Range header that triggers quadratic-time processing in Starlette's FileResponse Range parsing/merging logic. This enables CPU exhaustion per request, causing denial‑of‑service for endpoints serving files (e.g., StaticFiles or any use of FileResponse). This vulnerability is fixed in 0.49.1.","ecosystems":["PyPI","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2025-10-28","github_poc":1,"max_poc_stars":1,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-10-28T02:57:13Z","kind":"github_poc","ref":"https://github.com/ch4n3-yoon/CVE-2025-62727-Demo","stars":1,"title":"Proof of concept of CVE-2025-62727 that can cause denial-of-service in FastAPI (based Starlette \u003c= 0.48.0)"}],"tier":"weaponised"},"has_fix":true,"headline":"Starlette vulnerable to O(n^2) DoS via Range header merging in starlette.responses.FileResponse","id":"CVE-2025-62727","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"denial_of_service","year":"2025"},"n_packages":5,"n_references":4,"next":{"headline":"Apache Hive: SQL injection vulnerability when processing delete column statistics requests via the HMS Thrift APIs","id":"CVE-2025-62728"},"packages":[{"ecosystem":"PyPI","fixed":["0.49.1"],"introduced":["0.39.0"],"last_affected":[],"package":"starlette","purl":null,"source":"GHSA-7f5h-v6xp-fcq8"},{"ecosystem":"PyPI","fixed":["0.49.1"],"introduced":["0.39.0"],"last_affected":[],"package":"starlette","purl":"pkg:pypi/starlette","source":"GHSA-7f5h-v6xp-fcq8"},{"ecosystem":"PyPI","fixed":["0.49.1"],"introduced":["0.39.0"],"last_affected":[],"package":"starlette","purl":"pkg:pypi/starlette","source":"PYSEC-2026-1942"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["3.2.0-1.1"],"introduced":["0"],"last_affected":[],"package":"python-sse-starlette","purl":"pkg:rpm/opensuse/python-sse-starlette\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10109-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["0.49.1-1.1"],"introduced":["0"],"last_affected":[],"package":"python-starlette","purl":"pkg:rpm/opensuse/python-starlette\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:15696-1"}],"prev":{"headline":"n8n Vulnerable to Remote Code Execution via Git Node Pre-Commit Hook","id":"CVE-2025-62726"},"products":["starlette"],"published":"2025-10-28","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-04","vendors":["Kludex"]},"summary":"An unauthenticated attacker can cause CPU exhaustion and denial of service in Starlette applications by sending crafted HTTP Range headers to file-serving endpoints.","url":"https://insights.sbomify.com/CVE-2025-62727/"}