{"cve":"CVE-2026-48061","nvd":{"published":"2026-08-03T21:16:39.303","modified":"2026-10-23T21:10:00.157","status":"Deferred","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9},"cwes":["CWE-644"],"references":["https://github.com/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f3637a262","https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv","https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv"],"products":[],"source":"nvd","synced_at":"2026-10-24T16:53:34.184483516+00:00"},"epss":{"cve":"CVE-2026-48061","score":0.00375,"percentile":0.31222,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-3qmc-cj7q-62hv","url":"https://osv.dev/vulnerability/GHSA-3qmc-cj7q-62hv","summary":"Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header","modified":"2026-07-13T16:43:35.726390847Z","packages":[{"ecosystem":"PyPI","name":"litestar","purl":"pkg:pypi/litestar","ranges":["<2.22.0"],"fixed":["2.22.0"]}]},{"id":"PYSEC-2026-2603","url":"https://osv.dev/vulnerability/PYSEC-2026-2603","summary":"Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header","modified":"2026-07-13T16:32:04.490223485Z","packages":[{"ecosystem":"PyPI","name":"litestar","purl":"pkg:pypi/litestar","ranges":["<2.22.0"],"fixed":["2.22.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}