CVE-2026-48061
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.
Scoring
- Severity
- MEDIUM
- CVSS base score
- 5.9
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS probability
- 0.28%
- CWE
- CWE-644
- Published
- 2026-08-03
- Last modified
- 2026-08-04
Affected products
- litestar-org litestar
Weakness type
Related vulnerabilities
- CVE-2026-69183 — Monkeytype: Rate-limit and anti-brute-force controls bypassable via spoofed HTTP headers (forgotPasswordEmail/verificationEmail mail bombing and badAuth bypass)
- CVE-2026-67179 — Genkit improper host header validation
- CVE-2026-66778 — Multiple vulnerabilities in SAP Business AI Platform (Approuter)
- CVE-2026-72574 — picocms Pico - Host Header Injection Enables Script Source Hijacking
- CVE-2026-0516 — A improper neutralization of HTTP Headers for Scripting Syntax vulnerability in SonicOS could allow...
- CVE-2026-21762 — Missing HTTP Security Headers in DevOps Loop
- CVE-2026-54477 — Gardyn IoT Hub Improper Neutralization of HTTP Headers for Scripting Syntax
- CVE-2026-55791 — Craft CMS: Blind SSRF and Arbitrary JavaScript Injection via Host Header Poisoning in actionResourceJs