{"cve":"CVE-2026-25478","nvd":{"published":"2026-02-09T20:15:57.017","modified":"2026-06-17T10:24:42.220","status":"Analyzed","description":"Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, CORSConfig.allowed_origins_regex is constructed using a regex built from configured allowlist values and used with fullmatch() for validation. Because metacharacters are not escaped, a malicious origin can match unexpectedly. The check relies on allowed_origins_regex.fullmatch(origin). This vulnerability is fixed in 2.20.0.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-942"],"references":["https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0","https://github.com/litestar-org/litestar/commit/eb87703b309efcc0d1b087dcb12784e76b003d5a","https://github.com/litestar-org/litestar/releases/tag/v2.20.0","https://github.com/litestar-org/litestar/security/advisories/GHSA-2p2x-hpg8-cqp2"],"products":["litestar:litestar"],"source":"nvd","synced_at":"2026-10-19T22:22:27.261130201+00:00"},"epss":{"cve":"CVE-2026-25478","score":0.00446,"percentile":0.38784,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-2p2x-hpg8-cqp2","url":"https://osv.dev/vulnerability/GHSA-2p2x-hpg8-cqp2","summary":"Litestar's CORS origin allowlist has a bypass due to unescaped regex metacharacters in allowed origins","modified":"2026-07-13T07:26:21.863580114Z","packages":[{"ecosystem":"PyPI","name":"litestar","purl":"pkg:pypi/litestar","ranges":[">=2.19.0 <2.20.0"],"fixed":["2.20.0"]}]},{"id":"PYSEC-2026-2195","url":"https://osv.dev/vulnerability/PYSEC-2026-2195","summary":"","modified":"2026-07-13T07:15:26.781903108Z","packages":[{"ecosystem":"PyPI","name":"litestar","purl":"pkg:pypi/litestar","ranges":["<2.20.0"],"fixed":["2.20.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."]}