{"id":"CVE-2026-25478","published":"2026-02-09T18:46:56Z","modified":"2026-02-10T16:01:16Z","title":"Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins","vendor":"litestar-org","product":"litestar","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00439,"percentile":0.39051,"provenance":"source"},"cwes":[{"id":"CWE-942","name":"Permissive Cross-domain Security Policy with Untrusted Domains"}],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-2p2x-hpg8-cqp2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/litestar-org/litestar/commit/eb87703b309efcc0d1b087dcb12784e76b003d5a","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":13.0,"factors":[{"name":"EPSS percentile","points":7.81},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"litestar-org","affectedVersions":[{"vendor":"litestar-org","product":"litestar","versions":["< 2.20.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-10T15:30:25.275815Z","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-2p2x-hpg8-cqp2","PYSEC-2026-2195"],"provenance":"source"}],"summary":{"text":"The Litestar ASGI framework's CORS configuration (CORSConfig.allowed_origins_regex) fails to escape regex metacharacters in the origin allowlist values it builds its regex from, so origin validation can accept origins that were not intended to be allowed. An attacker who can get a victim to visit a malicious origin, which requires user interaction and no authentication or network position beyond that, can bypass the CORS origin restriction to read sensitive responses from the affected application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:43:40Z"},"euvd":{"id":"EUVD-2026-6496","exploited":false,"provenance":"source"}}