Skip to main content
CVE-2026-48710VulnerabilityPublished Updated

Fastapi: Starlette has missing Host header validation that poisons request.url.path, bypassing path-based security

Affects fastapiSource GCVE Database

0
Compare
Authoritative record:CVE-2026-48710· Medium 6.5

Exploited in the wild · KEV due 16 Sep 2026 · public detection template (Nuclei) : upgrade to 0.136.1_4 now.

Data as of 9 Nov 2026, 20:03 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
KEV deadline
 US federal agencies must patch by this date; a sensible deadline for everyone else. Other KEV due dates
Patch
Available – fixed in 0.136.1_4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

t = 0 is the CVE’s publication on cve.org

  1. Disclosed: evidence found.

    CVE published 26 May 2026

  2. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  3. Exploited in the wild: evidence found.

    Listed in CISA KEV 99 days after disclosure

  4. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

Timeline

  1. CVE ID reserved

    by GitHub, Inc.

    , 4 days before disclosure

  2. CVE published

    on cve.org

    , t = 0

  3. In Threat Radar

    record ingested

    , 24 minutes after disclosure

  4. , 99 days after disclosure

  5. KEV remediation due

    US federal deadline

    , 113 days after disclosure

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CISA KEV (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.

What to do

Upgrade fastapi to 0.136.1_4.

Affected software

ProductAffectedFixed in
Homebrewfastapipkg:brew/fastapiOther threatsAffected
  • >=0.111.0 <0.136.1_4
Fixed in
  • 0.136.1_4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade to Starlette version 0.136.1_4 or later, which includes Host header validation against RFC 9112 and RFC 3986 grammar and falls back to scope["server"] for malformed headers. Alternatively, deploy an RFC-compliant reverse proxy (e.g., nginx, Apache, HAProxy, Caddy) to reject malformed Host headers before they reach the application. Update any custom middleware to use request.scope["path"] instead of request.url.path for security decisions to avoid reliance on the reconstructed URL.

Description

A vulnerability in Starlette, used by FastAPI, allows an attacker to send a malformed HTTP Host header that causes the reconstructed request.url.path to differ from the actual requested path. This discrepancy can bypass security checks that rely on request.url.path for path-based authorization. The issue affects versions from 0.111.0 up to but not including 0.136.1_4. The vulnerability is mitigated by validating the Host header against RFC grammar or by using the ASGI scope path for security decisions.

References

Community reviews

Loading reviews…