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.
References
| Link | Resource |
|---|---|
| https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0 | Release Notes |
| https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace | Patch |
| https://github.com/litestar-org/litestar/releases/tag/v2.20.0 | Release Notes |
| https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4 | Exploit Vendor Advisory |
Configurations
History
17 Feb 2026, 15:14
| Type | Values Removed | Values Added |
|---|---|---|
| CPE | cpe:2.3:a:litestar:litestar:*:*:*:*:*:*:*:* | |
| Summary |
|
|
| References | () https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0 - Release Notes | |
| References | () https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203aba45c4ace - Patch | |
| References | () 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 - 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
