{"id":"CVE-2026-25479","published":"2026-02-09T18:48:19Z","modified":"2026-02-10T16:01:11Z","title":"Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns","vendor":"litestar-org","product":"litestar","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00486,"percentile":0.34544,"provenance":"source"},"cwes":[{"id":"CWE-185","name":"Incorrect Regular Expression"}],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace","tags":["x_refsource_MISC"]},{"url":"https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/litestar-org/litestar/releases/tag/v2.20.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.5,"factors":[{"name":"EPSS percentile","points":6.91},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"litestar-org","affectedVersions":[{"vendor":"litestar-org","product":"litestar","versions":["< 2.20.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-10T15:39:53.590127Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"litestar","vulnerableRanges":[">=2.19.0, <2.20.0","<2.20.0"],"patched":["2.20.0"],"from":["GHSA-93ph-p7v4-hwh4","PYSEC-2026-2196"],"provenance":"source"}],"summary":{"text":"Litestar, an ASGI framework, has a flaw in its AllowedHosts middleware (litestar.middleware.allowed_hosts) where allowlist entries are compiled into regex patterns without escaping metacharacters, so characters like \".\" retain their special meaning. An attacker who can send unauthenticated network requests with a crafted Host header can get past the allowlist and be accepted as a host that matches the pattern but is not the intended hostname, with no user interaction or special configuration required beyond the use of AllowedHosts itself.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:25Z"},"euvd":{"id":"EUVD-2026-6497","exploited":false,"provenance":"source"}}