{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-48061","id":"CVE-2026-48061","title":"Litestar: AllowedHostsMiddleware bypasses host validation via client-controlled X-Forwarded-Host header","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-control","descriptionLong":"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":"2026-08-03T20:47:34.673Z","updated":"2026-10-28T02:30:24.186115599Z","reserved":"2026-05-20T18:25:25.707Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["litestar-org litestar"],"affectedProducts":[{"vendor":"litestar-org","product":"litestar","defaultStatus":null,"versions":[{"version":"< 2.22.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"litestar","purl":"pkg:pypi/litestar","ranges":["<2.22.0"],"fixed":["2.22.0"],"advisory":"GHSA-3qmc-cj7q-62hv"}],"cwes":["CWE-644","CWE-348","CWE-807"],"aliases":["GHSA-3qmc-cj7q-62hv","PYSEC-2026-2603"],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-3qmc-cj7q-62hv","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/litestar-org/litestar/commit/6930a20ceb543912cd651b42deae5b9f3637a262","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48061.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48061","tags":["advisory"]},{"url":"https://github.com/litestar-org/litestar","tags":["package"]},{"url":"https://pypi.org/project/litestar","tags":["package"]},{"url":"https://github.com/advisories/GHSA-3qmc-cj7q-62hv","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00375,"epssPercentile":0.32204,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-48061","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48061","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-48061","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-3qmc-cj7q-62hv","ok":true,"note":"GHSA-3qmc-cj7q-62hv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-48061","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}