CVE-2026-25478Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins
- 7.4HighCVSS base score
- 0.44%Exploitation in 30 daysEPSS · top 61% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 7 days later
· 7 days later
Published
- 1 day later
· 1 day later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.4 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N |
| NVDNVD · Analyzed | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.44% · top 61% of all CVEs (16 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.4.
Affected products
- affected < 2.20.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIlitestarGHSA-2p2x-hpg8-cqp2 (opens in a new tab)
References
References4
- https://github.com/litestar-org/litestar/security/advisories/GHSA-2p2x-hpg8-cqp2 (opens in a new tab)x_refsource_CONFIRM
- https://github.com/litestar-org/litestar/commit/eb87703b309efcc0d1b087dcb12784e76b003d5a (opens in a new tab)x_refsource_MISC
- https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0 (opens in a new tab)x_refsource_MISC
- https://github.com/litestar-org/litestar/releases/tag/v2.20.0 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-6496 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-2p2x-hpg8-cqp2 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-25478)Record last updated .