CVE-2026-48061
Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header
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.
INFO
Published Date :
Aug. 3, 2026, 9:16 p.m.
Last Modified :
Oct. 23, 2026, 9:10 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | MITRE-CVE |
Solution
- Update Litestar to version 2.22.0 or later.
- Configure reverse proxy to strip X-Forwarded-Host header.
- Avoid accepting HTTP/1.0 connections.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-48061.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-48061 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-48061
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-48061 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-48061 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 23, 2026
Action Type Old Value New Value Added Translation Title: litestar de litestar-org, Description: Litestar es un framework de Interfaz de Pasarela de Servidor Asíncrono (ASGI). En versiones anteriores a la 2.22.0, un atacante puede omitir la validación de hosts permitidos al omitir el encabezado Host y proporcionar un encabezado X-Forwarded-Host configurado a un dominio en la lista blanca. El AllowedHostsMiddleware confía en el encabezado X-Forwarded-Host como respaldo cuando el encabezado Host está ausente. Dado que X-Forwarded-Host es un encabezado controlable por el cliente, esto permite ataques de inyección de encabezado de host como envenenamiento de restablecimiento de contraseña, envenenamiento de caché y manipulación de enrutamiento de solicitudes del lado del servidor. Cualquier aplicación que utilice AllowedHostsConfig se ve afectada cuando se despliega sin un proxy inverso que elimine X-Forwarded-Host, o cuando acepta conexiones HTTP/1.0. Este problema ha sido solucionado en la versión 2.22.0. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 04, 2026
Action Type Old Value New Value Added Reference https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv Added SSVC {'id': 'CVE-2026-48061', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-04T13:33:39.144833Z'} -
New CVE Received by [email protected]
Aug. 03, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'litestar-org', 'product': 'litestar', 'versions': [{'status': 'affected', 'version': '< 2.22.0'}]}] Added 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. Added CVSS V3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N Added CWE CWE-644 Added Reference https://github.com/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f3637a262 Added Reference https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv