CVE-2026-48061: Litestar - Host Header Injection
- Cve: CVE-2026-48061
- Name: Litestar - Host Header Injection
- Description: 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.
- Impact: Attackers can bypass host validation, enabling password reset poisoning, cache poisoning, and request routing manipulation.
- Remediation: Update to version 2.22.0 or later.
- Vulnerability type: host_header_injection
- Vulnerability impact: broken_access_control
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss 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 score: 0.00375
- Epss percentile: 0.31945
- Assignee: [email protected]
- Published at: 2026-08-03T21:16:39Z
- Age in days: 113
- Modified at: 2026-10-23T21:10:00Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-48061
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-644 | Improper Neutralization of HTTP Headers for Scripting Syntax |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f3637a262 | nvd | |
| https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| litestar:litestar | < 2.22.0 | no | cna_alias_text | /v1/products/litestar/litestar |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| litestar-org/litestar | commit, fix, package, security_advisory | yes | /v1/repositories/litestar-org/litestar |
Index
- Repositories: 12
- Repositories high signal: 9
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts