CORS Allowlist Bypass via Improper Regex in Sanic-Cors 2.2.0
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| n/a | n/a | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Ashleysommer | Sanic-cors |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-94jw-hqvj-vw74 | sanic-cors contains an improper regular expression in the try_match() function |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.164% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Ashleysommer
Ashleysommer sanic-cors |
|
| Vendors & Products |
Ashleysommer
Ashleysommer sanic-cors |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | CORS Allowlist Bypass via Improper Regex in Sanic-Cors 2.2.0 |
| Type | Values Removed | Values Added |
|---|---|---|
| Title | CORS Allowlist Bypass in Sanic‑Cors due to Improper Regex | |
| Weaknesses | CWE-285 |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-346 CWE-625 |
|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Title | CORS Allowlist Bypass in Sanic‑Cors due to Improper Regex | |
| Weaknesses | CWE-285 |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | sanic-cors version 2.2.0 and prior contains an improper regular expression in the try_match() function in sanic_cors/core.py that uses re.match without end-anchoring. This allows an attacker to bypass CORS origin allowlists by registering a domain that begins with a trusted origin string, to gain unauthorized access to cross-origin requests for authenticated resources. | |
| References |
|