litestar
Affected
- introduced
0, fixed2.20.0(ecosystem)
Fixed versions
2.20.0
Fix
- Fixed version
2.20.0pip install --upgrade litestar==2.20.0
Advisory
Also known as: CVE-2026-25479, GHSA-93ph-p7v4-hwh4
The record has no summary.
Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, in litestar.middleware.allowed_hosts, allowlist entries are compiled into regex patterns in a way that allows regex metacharacters to retain special meaning (e.g., . matches any character). This enables a bypass where an attacker supplies a host that matches the regex but is not the intended literal hostname. This vulnerability is fixed in 2.20.0.
Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
0, fixed 2.20.0 (ecosystem)2.20.0
2.20.0pip install --upgrade litestar==2.20.0Fix 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
Source: PyPA Advisory Database · CC BY 4.0