CVE-2026-48061
Full vulnerability record from the local CVENow database.
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.
View original CVE JSON
{
"id": "CVE-2026-48061",
"sourceIdentifier": "[email protected]",
"published": "2026-08-03T21:16:39.303",
"lastModified": "2026-10-23T21:10:00.157",
"vulnStatus": "Deferred",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "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."
},
{
"lang": "es",
"value": "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."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "litestar-org",
"product": "litestar",
"versions": [
{
"version": "< 2.22.0",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N",
"baseScore": 5.9,
"baseSeverity": "MEDIUM",
"attackVector": "NETWORK",
"attackComplexity": "HIGH",
"privilegesRequired": "NONE",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "NONE",
"integrityImpact": "HIGH",
"availabilityImpact": "NONE"
},
"exploitabilityScore": 2.2,
"impactScore": 3.6
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2026-08-04T13:33:39.144833Z",
"id": "CVE-2026-48061",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-644"
}
]
}
],
"references": [
{
"url": "https://github.com/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f3637a262",
"source": "[email protected]"
},
{
"url": "https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv",
"source": "[email protected]"
},
{
"url": "https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
]
}