CVE-2026-25478
published high CVSS 3.1 · 7.4Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| litestar-org | — | litestar< 2.20.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| litestar-org | litestar | < 2.20.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-942 CWE-942: Permissive Cross-domain Policy with Untrusted Domains
References
4Provider assertions
2GitHub_M · cna
Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1da5ccb07bec6c668dafdff4f5ed5d1d35cdc9b530e803dbceb027dc2434f40b
- Ingested
- 23 Sep 2026, 09:06:52 UTC
- Source record
- Official CVE record