CVE-2026-54282Encode Starlette
Medium 5.3 No auth needed
Follow: this CVE · Encode · Encode Starlette We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Jun 22, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-706
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Starlette.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | starlette |
< 1.3.0 |
1.3.0 |
pip install "starlette>=1.3.0" |
| PyPI | starlette |
< 1.3.0 |
1.3.0 |
pip install "starlette>=1.3.0" |
Per OSV / GitHub Advisories (GHSA-jp82-jpqv-5vv3, PYSEC-2026-248). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| encode | starlette | < 1.3.0 |
Official advisories
- Security update for python-starlette · SUSE · SUSE-SU-2026:22360-1 · Jun 24, 2026 High
- Security update for python-starlette · SUSE · openSUSE-SU-2026:21053-1 · Jun 24, 2026 High
- python311-starlette-1.3.1-1.1 on GA media · SUSE · openSUSE-SU-2026:11058-1 · Jun 18, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Mitigation Vendor Advisory