CVE-2026-48061 json
Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header
published 2026-06-10 4 mo ago modified 2026-10-23 16 d ago also EUVD-2026-52437 , GHSA-3qmc-cj7q-62hv , PYSEC-2026-2603
- cvss
- 5.9
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 31%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 3 mo ago
Exploit prediction
0.38% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | litestar | <2.22.0 |
2.22.0 |
Affected products
- litestar-org litestar
Classification
References
-
github.com
/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f3637a262
web
-
github.com
/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv
exploit, web
-
github.com
/litestar-org/litestar
package
-
pypi.org
/project/litestar
package
-
github.com
/advisories/GHSA-3qmc-cj7q-62hv
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-48061
advisory
Sources
- CVE List CVE-2026-48061
- GitHub Advisory GHSA-3qmc-cj7q-62hv
- NVD CVE-2026-48061
- OSV PYSEC-2026-2603
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.