Skip to main content
EPSS 0.3%top 72%

CVE-2026-48061: CWE-644: Improper Neutralization of HTTP Headers for Scripting Syntax in litestar-org litestar

0
Medium
VulnerabilityCVE-2026-48061cvecve-2026-48061cwe-644
Published: 08/03/2026 (08/03/2026, 20:47:34 UTC)
Source: CVE Database V5
Vendor/Project: litestar-org
Product: 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

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

Affected software

litestar-org

litestar

Affected versions
<2.22.0
litestar
pkg:pypi/litestar
Affected versions
<2.22.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/11/2026, 18:26:30 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses