CORS Validation Flaw in Litestar ASGI Framework
CVE-2026-25478

7.4HIGH

Key Information:

Status
Vendor
CVE Published:
9 February 2026

What is CVE-2026-25478?

The Litestar framework, an Asynchronous Server Gateway Interface (ASGI) solution, faced a significant vulnerability prior to version 2.20.0. This flaw existed in the CORSConfig.allowed_origins_regex, which was improperly constructed using a regex that derived its values from the configured allowlist. Due to the lack of escaping for metacharacters, it posed a risk by allowing malicious origins to match unexpectedly, potentially compromising the security of applications leveraging this framework. The issue was addressed and resolved in version 2.20.0.

Affected Version(s)

litestar < 2.20.0

References

CVSS V3.1

Score:
7.4
Severity:
HIGH
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Changed

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.