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.
Advisories
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-93ph-p7v4-hwh4 | Litestar's AllowedHosts has a validation bypass due to unescaped regex metacharacters in configured host patterns |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Tue, 10 Feb 2026 16:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Litestar-org
Litestar-org litestar |
|
| Vendors & Products |
Litestar-org
Litestar-org litestar |
Mon, 09 Feb 2026 19:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns | |
| Weaknesses | CWE-185 | |
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2026-02-10T16:01:11.941Z
Reserved: 2026-02-02T16:31:35.821Z
Link: CVE-2026-25479
No data.
Status : Awaiting Analysis
Published: 2026-02-09T20:15:57.177
Modified: 2026-02-09T21:55:30.093
Link: CVE-2026-25479
No data.
OpenCVE Enrichment
Updated: 2026-02-10T16:26:53Z
Weaknesses
Github GHSA