Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| litestar-org | litestar | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Litestar-org | Litestar |
|
| 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 |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.353% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Litestar
Litestar litestar |
|
| CPEs | cpe:2.3:a:litestar:litestar:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Litestar
Litestar litestar |
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Litestar-org
Litestar-org litestar |
|
| Vendors & Products |
Litestar-org
Litestar-org litestar |
| 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
|