# CVE-2026-48061: Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 29% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-10T19:12:10.000Z
- Modified: 2026-10-23T21:10:00.157Z
- Also known as: GHSA-3qmc-cj7q-62hv, PYSEC-2026-2603
- Weaknesses: CWE-348, CWE-644, CWE-807
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- litestar-org litestar: < 2.22.0
- litestar (PyPI): before 2.22.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv> (exploit, web)
- <https://github.com/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f3637a262> (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)

## Sources

- CVE List: [CVE-2026-48061](https://www.cve.org/CVERecord?id=CVE-2026-48061), CVE Terms of Use, modified 2026-08-04
- GitHub Advisory Database: [GHSA-3qmc-cj7q-62hv](https://github.com/advisories/GHSA-3qmc-cj7q-62hv), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-48061](https://nvd.nist.gov/vuln/detail/CVE-2026-48061), Public domain, modified 2026-10-23
- PyPA Advisory Database: [PYSEC-2026-2603](https://osv.dev/vulnerability/PYSEC-2026-2603), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-48061 · Whole record: https://cve.day/CVE-2026-48061.json · Rebuilt by cve.day 2026-11-25T22:59:30.903Z
