CVE-2026-25478

Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins

State
Published
Severity
7.4 High
Published
Feb 9, 2026
Updated
Feb 10, 2026
Reserved
Feb 2, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.4 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:NGitHub_M

Weaknesses

  • CWE-942 Permissive Cross-domain Policy with Untrusted Domains

Affected Products

ProductVersions
litestarlitestar-org
  • < 2.20.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.