๐Ÿ” CVE Alert

CVE-2026-48061

MEDIUM 5.9

Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header

CVSS Score
5.9
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-644
Vendor litestar-org
Product litestar
Published Aug 3, 2026
Stay Ahead of the Next One

Get instant alerts for litestar-org litestar

Be the first to know when new medium vulnerabilities affecting litestar-org litestar are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Affected Versions

litestar-org / litestar
< 2.22.0

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv github.com: https://github.com/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f3637a262