litestar
Affected
- introduced
0, fixed2.20.0(ecosystem)
Fixed versions
2.20.0
Fix
- Fixed version
2.20.0pip install --upgrade litestar==2.20.0
Advisory
Also known as: CVE-2026-25478, GHSA-2p2x-hpg8-cqp2
The record has no summary.
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.
Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
0, fixed 2.20.0 (ecosystem)2.20.0
2.20.0pip install --upgrade litestar==2.20.0Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0