Vulnerability 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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f
- https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv
- https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv
FAQ
What is CVE-2026-48061?
CVE-2026-48061 is a vulnerability with a CVSS score of 5.9 (MEDIUM). 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-F...
How severe is CVE-2026-48061?
CVE-2026-48061 has been rated MEDIUM with a CVSS base score of 5.9/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-48061?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.