CVE-2026-54282: Starlette · Unvalidated request path concatenated into authority poisons request.url.hostname
Affects fastapiSource GCVE Database
Not known to be exploited · CVSS 3.7 Low : upgrade to 0.137.0 when convenient.
Data as of 9 Nov 2026, 20:02 UTC
- Patch
- Available – fixed in 0.137.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 22 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (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.137.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewfastapipkg:brew/fastapiOther threats | Affected
| Fixed in
|
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.137.0 or later, where the request path is validated to prevent crossing into the URL authority. This ensures that malformed paths like '@google.com' are correctly interpreted as part of the path (e.g., 'http://localhost/@google.com') with the hostname remaining trustworthy. No other mitigations are indicated.
Description
A vulnerability in Starlette versions >=0.111.0 and <0.137.0 allows an attacker to craft an HTTP request path that lacks a leading slash, causing the reconstructed request URL's hostname to be attacker-controlled. This occurs because the path is concatenated directly after the host without validation, enabling the path to poison the authority portion of the URL. This can mislead code that relies on request.url.hostname for security decisions, particularly in middleware or 404/exception handlers. The issue is fixed in version 0.137.0.