CVE-2026-54282
MEDIUM 5.3CVSS 3.1Starlette: Unvalidated request path concatenated into authority poisons request.url.hostname
Starlette is a lightweight ASGI framework/toolkit. Prior to 1.3.0, 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. This vulnerability is fixed in 1.3.0.
- Published
- 22 Jun 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-20CWE-706
- Also known as
- GHSA-jp82-jpqv-5vv3PYSEC-2026-248
- Sources
- NVDJSONOSV GHSA-jp82-jpqv-5vv3JSONOSV PYSEC-2026-248JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | encode | starlettecpe:2.3:a:encode:starlette:*:*:*:*:*:python:*:* |
< 1.3.0 | 1.3.0 |
| OSV | PyPI | starlette | < 1.3.0 | 1.3.0 |
References
- https://github.com/Kludex/starlette/security/advisories/GHSA-jp82-jpqv-5vv3 · Mitigation, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-54282 · ADVISORY
- https://github.com/Kludex/starlette · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/starlette/PYSEC-2026-248.yaml · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 22 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 15 Jun 2026)