Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. starlette
  4. ›
  5. CVE-2025-62727

CVE-2025-62727: Starlette vulnerable to O(n^2) DoS via Range header merging in ``starlette.responses.FileResponse``

October 28, 2025 (updated November 4, 2025)

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).

References

  • github.com/Kludex/starlette
  • github.com/Kludex/starlette/commit/4ea6e22b489ec388d6004cfbca52dd5b147127c5
  • github.com/Kludex/starlette/commit/69ed26a85956ef4bd0161807eb27abf49be7cd3c
  • github.com/Kludex/starlette/releases/tag/0.49.1
  • github.com/Kludex/starlette/security/advisories/GHSA-7f5h-v6xp-fcq8
  • github.com/advisories/GHSA-7f5h-v6xp-fcq8
  • nvd.nist.gov/vuln/detail/CVE-2025-62727

Code Behaviors & Features

Detect and mitigate CVE-2025-62727 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.39.0 before 0.49.1

Fixed versions

  • 0.49.1

Solution

Upgrade to version 0.49.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-407: Inefficient Algorithmic Complexity

Source file

pypi/starlette/CVE-2025-62727.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:08 +0000.