CVE-2026-48061
MEDIUM 5.9CVSS 3.1Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header
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.
- Published
- 3 Aug 2026
- Last modified
- 23 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-348CWE-644CWE-807
- Also known as
- GHSA-3qmc-cj7q-62hvPYSEC-2026-2603
- Sources
- NVDJSONOSV GHSA-3qmc-cj7q-62hvJSONOSV PYSEC-2026-2603JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | litestar | < 2.22.0 | 2.22.0 |
References
- https://github.com/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f3637a262 · WEB
- https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv · WEB
- https://github.com/litestar-org/litestar · PACKAGE
- https://pypi.org/project/litestar · PACKAGE
- https://github.com/advisories/GHSA-3qmc-cj7q-62hv · ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2026-48061 · ADVISORY
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 3 Aug 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Jun 2026)