{"id":"CVE-2026-25479","aliases":["GHSA-93ph-p7v4-hwh4","PYSEC-2026-2196"],"url":"https://o3.security/vulnerability/CVE-2026-25479","summary":"Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns","details":"Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, in litestar.middleware.allowed_hosts, allowlist entries are compiled into regex patterns in a way that allows regex metacharacters to retain special meaning (e.g., . matches any character). This enables a bypass where an attacker supplies a host that matches the regex but is not the intended literal hostname. This vulnerability is fixed in 2.20.0.","published":"2026-02-09T18:48:19.971Z","modified":"2026-08-07T11:50:42.218276567Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"PyPI","name":"litestar","fixedVersion":"2.20.0"}],"fix":{"url":"https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace","label":"litestar-org/litestar@06b36f4"},"references":[{"type":"WEB","url":"https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0"},{"type":"WEB","url":"https://github.com/litestar-org/litestar/releases/tag/v2.20.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25479.json"},{"type":"ADVISORY","url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-25479"},{"type":"FIX","url":"https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:50:42.218276567Z"}}