Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins
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-2p2x-hpg8-cqp2 | Litestar's CORS origin allowlist has a bypass due to unescaped regex metacharacters in allowed origins |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.439% 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, CORSConfig.allowed_origins_regex is constructed using a regex built from configured allowlist values and used with fullmatch() for validation. Because metacharacters are not escaped, a malicious origin can match unexpectedly. The check relies on allowed_origins_regex.fullmatch(origin). This vulnerability is fixed in 2.20.0. | |
| Title | Litestar has a CORS origin allowlist bypass due to unescaped regex metacharacters in allowed origins | |
| Weaknesses | CWE-942 | |
| References |
| |
| Metrics |
cvssV3_1
|