CVE-2026-54282: Starlette · Unvalidated request path concatenated into authority poisons request.url.hostname
Affects semgrepSource GCVE Database
Not known to be exploited · CVSS 3.7 Low : upgrade to 1.166.0 when convenient.
Data as of 31 Oct 2026, 16:23 UTC
- Patch
- Available – fixed in 1.166.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 30 Oct 2026.
What to do
Upgrade semgrep to 1.166.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewsemgreppkg:brew/semgrepOther 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 1.166.0 or later, where the request path is validated to prevent crossing into the URL authority. In patched versions, a malformed path such as '@google.com' is correctly interpreted as part of the path (e.g., 'http://localhost/@google.com'), preserving the correct hostname and preventing attacker control over request.url.hostname.
Description
A vulnerability in Starlette versions 1.137.0 through 1.165.9 allows an attacker to manipulate the reconstructed request URL's hostname by supplying a request path that does not start with a slash. This causes the path to be interpreted as part of the URL authority, misleading code that relies on request.url.hostname for security decisions. The issue primarily affects middleware or handlers that inspect request.url before routing, with limited exploitability due to routing returning 404 for such paths.