CVE-2026-25479 MEDIUM

CVE-2026-25479: Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns

Vendor Litestar-Org
Product litestar
Weakness CWE-185
Published February 9, 2026
Last update February 10, 2026

CVSS base score

6.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality Low
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

February 9, 2026 CVE published
February 10, 2026 Record updated