Skip to main content
VulnerabilityPublished Updated

CVE-2026-54282: Starlette · Unvalidated request path concatenated into authority poisons request.url.hostname

Affects semgrepSource GCVE Database

0
Compare
Authoritative record:CVE-2026-54282· Low 3.7

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

CVSS 3.1 base score
3.7Low
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Jun 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewsemgreppkg:brew/semgrepOther threatsAffected
  • >=1.137.0 <1.166.0
Fixed in
  • 1.166.0

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.

References

Community reviews

Loading reviews…