Skip to main content
VulnerabilityPublished Updated

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

Affects gptmeSource GCVE Database

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

Not known to be exploited · CVSS 3.7 Low : upgrade to 0.31.0_12 when convenient.

Data as of 4 Nov 2026, 21:27 UTC

CVSS 3.1 base score
3.7Low
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 19% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.31.0_12
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 4 Nov 2026.

What to do

Upgrade gptme to 0.31.0_12.

Affected software

ProductAffectedFixed in
Homebrewgptmepkg:brew/gptmeOther threatsAffected
  • >=0.28.0 <0.31.0_12
Fixed in
  • 0.31.0_12

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.31.0_12 or later, which includes a fix preventing the request path from crossing into the URL authority portion. This ensures that request.url.hostname correctly reflects the intended host and is not attacker-controlled. No other mitigation is required if the patched version is used.

Description

Starlette versions >=0.28.0 and <0.31.0_12 contain a vulnerability where the HTTP request path is not validated before reconstructing request.url. This allows a specially crafted path not starting with '/' (e.g., '@google.com') to alter the authority portion of the URL, causing request.url.hostname to be attacker-controlled. This can mislead code that relies on request.url.hostname for security decisions. The issue mainly affects middleware or 404/exception handlers that read request.url before routing. A patch in version 0.31.0_12 fixes this by ensuring the path cannot cross into the URL authority.

References

Community reviews

Loading reviews…