CVE-2026-48061litestar-org litestar
Medium 5.9 No auth needed
Follow: this CVE · litestar-org · litestar-org litestar We alert you by email or Slack (account required).
- Priority
- 50
- CVSS 3.1
- 5.9
- EPSS
- —
- Auth required
- No
- Published
- Aug 3, 2026
- Updated
- Oct 23, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-644
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. In versions prior to 2.22.0, an attacker can bypass the allowed hosts validation by omitting the Host header and supplying an X-Forwarded-Host header set to a whitelisted domain. The AllowedHostsMiddleware trusts the X-Forwarded-Host header as a fallback when the Host header is absent. Since X-Forwarded-Host is a client-controllable header, this enables host header injection attacks such as password reset poisoning, cache poisoning, and server-side request routing manipulation. Any application using AllowedHostsConfig is affected when deployed without a reverse proxy that strips X-Forwarded-Host, or when accepting HTTP/1.0 connections. This issue has been fixed in version 2.22.0.
What to do
- Apply the vendor's security update for litestar.
- 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 | litestar |
< 2.22.0 |
2.22.0 |
pip install "litestar>=2.22.0" |
| PyPI | litestar |
< 2.22.0 |
2.22.0 |
pip install "litestar>=2.22.0" |
Per OSV / GitHub Advisories (GHSA-3qmc-cj7q-62hv, PYSEC-2026-2603). Check the version in your lockfile before upgrading.
Affected products
- litestar-org · litestar
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.