CVE-2026-25479

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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:litestar:litestar:*:*:*:*:*:*:*:*

History

17 Feb 2026, 15:14

Type Values Removed Values Added
CPE cpe:2.3:a:litestar:litestar:*:*:*:*:*:*:*:*
Summary
  • (es) Litestar es un framework de Interfaz de Pasarela de Servidor Asíncrono (ASGI). Antes de la 2.20.0, en litestar.middleware.allowed_hosts, las entradas de la lista de permitidos se compilan en patrones de expresiones regulares de una manera que permite que los metacaracteres de expresiones regulares conserven un significado especial (por ejemplo, . coincide con cualquier carácter). Esto permite una omisión donde un atacante proporciona un host que coincide con la expresión regular pero no es el nombre de host literal previsto. Esta vulnerabilidad se corrige en la 2.20.0.
References () https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0 - () https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0 - Release Notes
References () https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace - () https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace - Patch
References () https://github.com/litestar-org/litestar/releases/tag/v2.20.0 - () https://github.com/litestar-org/litestar/releases/tag/v2.20.0 - Release Notes
References () https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4 - () https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4 - Exploit, Vendor Advisory
First Time Litestar litestar
Litestar

09 Feb 2026, 20:15

Type Values Removed Values Added
New CVE

Information

Published : 2026-02-09 20:15

Updated : 2026-02-17 15:14


NVD link : CVE-2026-25479

Mitre link : CVE-2026-25479

CVE.ORG link : CVE-2026-25479


JSON object : View

Products Affected

litestar

  • litestar
CWE
CWE-185

Incorrect Regular Expression