CVE-2026-25478

7.4 HIGH
Published: February 09, 2026 Modified: February 17, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0
Source: security-advisories@github.com
Release Notes
https://github.com/litestar-org/litestar/releases/tag/v2.20.0
Source: security-advisories@github.com
Release Notes
https://github.com/litestar-org/litestar/security/advisories/GHSA-2p2x-hpg8-cqp2
Source: security-advisories@github.com
Exploit Vendor Advisory

4 reference(s) from NVD

Quick Stats

CVSS v3 Score
7.4 / 10.0
EPSS (Exploit Probability)
0.0%
2th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

litestar