Advisory

PYSEC-2026-2195

Also known as: CVE-2026-25478, GHSA-2p2x-hpg8-cqp2

Summary

The record has no summary.

Details

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.

Severity

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

Dates

Published
2026-02-09 20:15 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

litestar

PyPI · All systems

Affected

  • introduced 0, fixed 2.20.0 (ecosystem)

Fixed versions

2.20.0

Fix

  • Fixed version 2.20.0
    pip install --upgrade litestar==2.20.0

Fix 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

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences