Live threats

All CVEs / Litestar

CVE-2026-25478Litestar

Medium 6.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Litestar.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
litestarlitestar< 2.20.0

Official sources

References

Links published by the sources. Open them with care.