CVE-2026-25479CWE-185

Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns

Medium · published February 9, 2026

CVSS v3.1
6.5
EPSS
0%
Percentile
38.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00456 · 38.6th percentile
Weakness
CWE-185 · Incorrect Regular Expression
Published
2026-02-09T18:48Z
EPSS history
Timeline
  • 09 FEB 18:48Z
    Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns
    cvelistv5