Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. starlette
  4. ›
  5. CVE-2026-54282

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

June 15, 2026

In affected versions, the HTTP request path is not validated before being used to reconstruct request.url. Because request.url is rebuilt by concatenating {scheme}://{host}{path} and re-parsing the result, a path that does not begin with / (for example @google.com) moves the authority boundary during re-parsing, so request.url.hostname and request.url.netloc become attacker-controlled. Code that reads request.url.hostname (rather than the Host header or scope) can therefore be misled into trusting an attacker-supplied host.

References

  • github.com/Kludex/starlette/security/advisories/GHSA-jp82-jpqv-5vv3
  • github.com/advisories/GHSA-jp82-jpqv-5vv3
  • nvd.nist.gov/vuln/detail/CVE-2026-54282

Code Behaviors & Features

Detect and mitigate CVE-2026-54282 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.3.0

Fixed versions

  • 1.3.0

Solution

Upgrade to version 1.3.0 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-706: Use of Incorrectly-Resolved Name or Reference

Source file

pypi/starlette/CVE-2026-54282.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:22:41 +0000.