CVE-2026-25478Litestar
Medium 6.5 No auth needed
Follow: this CVE · Litestar · Litestar We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.1
- 6.5
- EPSS
- —
- Auth required
- No
- Published
- Feb 9, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-942
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Litestar.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | litestar |
≥ 2.19.0 < 2.20.0 |
2.20.0 |
pip install "litestar>=2.20.0" |
| PyPI | litestar |
< 2.20.0 |
2.20.0 |
pip install "litestar>=2.20.0" |
Per OSV / GitHub Advisories (GHSA-2p2x-hpg8-cqp2, PYSEC-2026-2195). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| litestar | litestar | < 2.20.0 |
Official sources
References
Links published by the sources. Open them with care.
- docs.litestar.dev Release Notes
- github.com Patch
- github.com Release Notes
- github.com Exploit Vendor Advisory