CORS Validation Flaw in Litestar ASGI Framework
CVE-2026-25478
7.4HIGH
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
