CVE-2026-48061
Published:August 03, 2026
Updated:August 05, 2026
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.
Affected Packages
litestar (CONDA):
Affected version(s) >=2.8.0 <2.22.0Fix Suggestion:
Update to version 2.22.0litestar (CONDA):
Affected version(s) >=2.8.0 <2.22.0Fix Suggestion:
Update to version 2.22.0https://github.com/litestar-org/litestar.git (GITHUB):
Affected version(s) >=v0.0.1a <v2.22.0Fix Suggestion:
Update to version v2.22.0litestar (PYTHON):
Affected version(s) >=1.0.0a0 <2.22.0Fix Suggestion:
Update to version 2.22.0Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.2
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
EPSS
Base Score:
0.28