CVE Vulnerabilities

CVE-2026-25479

Incorrect Regular Expression

Published: Feb 09, 2026 | Modified: Feb 17, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product specifies a regular expression in a way that causes data to be improperly matched or compared.

Affected Software

NameVendorStart VersionEnd Version
LitestarLitestar*2.20.0 (excluding)

Potential Mitigations

References