Medium severity · published Feb 9, 2026
CVE-2026-25479
Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns
6.5
CVSS
0.4%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 29% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
litestar · litestar-org
< 2.20.0 · source: vendor, NVD
Affected product
LI
litestar
litestar-org
More from litestar
8.3
CVE-2024-42370
Litestar repository vulnerable to Environment Variable injection in `docs-preview.yml` workflow
8.2
CVE-2024-32982
Litestar and Starlite affected by Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
8.1
CVE-2026-48060
Litestar: HTML Injection Through CSRF Token
7.5
CVE-2025-59152
X-Forwarded-For Header Spoofing Bypasses Litestar Rate Limiting
7.5
CVE-2024-52581
Litestar allows unbounded resource consumption (DoS vulnerability)