CVE-2026-48061: CWE-644: Improper Neutralization of HTTP Headers for Scripting Syntax in litestar-org litestar
Litestar versions prior to 2.22.0 contain a vulnerability in the AllowedHostsMiddleware where the X-Forwarded-Host header is trusted as a fallback when the Host header is missing. This allows an attacker to bypass allowed hosts validation by omitting the Host header and supplying a malicious X-Forwarded-Host header. The vulnerability enables host header injection attacks such as password reset poisoning, cache poisoning, and server-side request routing manipulation. The issue is fixed in version 2.22.0.
AI Analysis
Technical Summary
Litestar, an ASGI framework, in versions before 2.22.0, improperly neutralizes HTTP headers by trusting the client-controllable X-Forwarded-Host header when the Host header is absent. This allows attackers to bypass allowed hosts validation in AllowedHostsMiddleware, leading to host header injection attacks including password reset poisoning, cache poisoning, and manipulation of server-side request routing. The vulnerability affects applications using AllowedHostsConfig deployed without a reverse proxy that strips X-Forwarded-Host or accepting HTTP/1.0 connections. The issue is resolved in version 2.22.0.
Potential Impact
The vulnerability allows attackers to bypass host validation controls, potentially enabling attacks such as password reset poisoning, cache poisoning, and manipulation of server-side request routing. These impacts can compromise application integrity and user security. There is no indication of confidentiality or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade Litestar to version 2.22.0 or later where this vulnerability is fixed. Additionally, deploy a reverse proxy that strips or properly validates the X-Forwarded-Host header, especially if accepting HTTP/1.0 connections. These steps will prevent host header injection attacks related to this issue.
CVE-2026-48061: CWE-644: Improper Neutralization of HTTP Headers for Scripting Syntax in litestar-org litestar
Description
Litestar versions prior to 2.22.0 contain a vulnerability in the AllowedHostsMiddleware where the X-Forwarded-Host header is trusted as a fallback when the Host header is missing. This allows an attacker to bypass allowed hosts validation by omitting the Host header and supplying a malicious X-Forwarded-Host header. The vulnerability enables host header injection attacks such as password reset poisoning, cache poisoning, and server-side request routing manipulation. The issue is fixed in version 2.22.0.
CVSS v3.1
Score 5.9medium
Affected software
litestar-org
litestar
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Litestar, an ASGI framework, in versions before 2.22.0, improperly neutralizes HTTP headers by trusting the client-controllable X-Forwarded-Host header when the Host header is absent. This allows attackers to bypass allowed hosts validation in AllowedHostsMiddleware, leading to host header injection attacks including password reset poisoning, cache poisoning, and manipulation of server-side request routing. The vulnerability affects applications using AllowedHostsConfig deployed without a reverse proxy that strips X-Forwarded-Host or accepting HTTP/1.0 connections. The issue is resolved in version 2.22.0.
Potential Impact
The vulnerability allows attackers to bypass host validation controls, potentially enabling attacks such as password reset poisoning, cache poisoning, and manipulation of server-side request routing. These impacts can compromise application integrity and user security. There is no indication of confidentiality or availability impact. No known exploits in the wild have been reported.
Mitigation Recommendations
Upgrade Litestar to version 2.22.0 or later where this vulnerability is fixed. Additionally, deploy a reverse proxy that strips or properly validates the X-Forwarded-Host header, especially if accepting HTTP/1.0 connections. These steps will prevent host header injection attacks related to this issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-20T18:25:25.707Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7105c0bf32cb7a3436d791
Added to database: 08/03/2026, 21:18:56 UTC
Last enriched: 08/11/2026, 18:26:30 UTC
Last updated: 09/17/2026, 22:01:35 UTC
Views: 51
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.