Vulnerability · Published Jun 5, 2026 · Assigned by mitre
CVE-2026-37737
Medium 6.5
In plain English
A medium-severity security flaw in the sanic-cors package (PyPI). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 6% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | sanic-cors | no fix listed | GHSA-94jw-hqvj-vw74 |
| PyPI | sanic-cors | no fix listed | PYSEC-2026-3539 |
Affected products (as reported)
Weakness: CWE-625, CWE-346 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N