{"id":"CVE-2026-25478","state":"PUBLISHED","title":"Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins","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.","publishedAt":"2026-02-09T18:46:56.445Z","updatedAt":"2026-02-10T16:01:16.807Z","severity":{"score":7.4,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["litestar-org litestar"],"affected":[{"vendor":"litestar-org","product":"litestar","versions":[{"version":"< 2.20.0","status":"affected"}]}],"references":["https://github.com/litestar-org/litestar/security/advisories/GHSA-2p2x-hpg8-cqp2","https://github.com/litestar-org/litestar/commit/eb87703b309efcc0d1b087dcb12784e76b003d5a","https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0","https://github.com/litestar-org/litestar/releases/tag/v2.20.0"],"weaknesses":["CWE-942"],"ingestedAt":"2026-10-29T20:11:21.040Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/25xxx/CVE-2026-25478.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-25478","state":"PUBLISHED","datePublished":"2026-02-09T18:46:56.445Z","dateUpdated":"2026-02-10T16:01:16.807Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-02-02T16:31:35.820Z"},"containers":{"cna":{"title":"Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"litestar-org","product":"litestar","versions":[{"version":"< 2.20.0","status":"affected"}]}],"references":[{"url":"https://github.com/litestar-org/litestar/security/advisories/GHSA-2p2x-hpg8-cqp2","name":"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","name":"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","name":"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","name":"https://github.com/litestar-org/litestar/releases/tag/v2.20.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":7.4,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-942","lang":"en","description":"CWE-942: Permissive Cross-domain Policy with Untrusted Domains","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-02-09T18:46:56.445Z"},"source":{"advisory":"GHSA-2p2x-hpg8-cqp2","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-02-10T15:30:25.275815Z","id":"CVE-2026-25478","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-02-10T16:01:16.807Z"}}]}}}