CVE-2026-37737
mediumpriority · track · 0EPSS 0.002 · 6 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-94jw-hqvj-vw74sanic-cors contains an improper regular expression in the try_match() function2026-06-05ghsa · osvUS
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.
- PYSEC-2026-3539sanic-cors contains an improper regular expression in the try_match() function2026-07-23vendor · osvUS
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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (12)
External citations — patches, advisories, analysis.
- https://github.com/ashleysommer/sanic-corscnnvd
- https://github.com/ashleysommer/sanic-cors/blob/master/sanic_cors/core.pycnnvd
- https://github.com/npbhatter17/security-advisories/blob/main/CVE-2026-37737-sanic-cors-advisory.mdcnnvd
- https://pypi.org/project/Sanic-Cors/cnnvd
- https://github.com/ashleysommer/sanic-corsenisa_euvd
- https://github.com/ashleysommer/sanic-cors/blob/master/sanic_cors/core.pyenisa_euvd
- https://github.com/npbhatter17/security-advisories/blob/main/CVE-2026-37737-sanic-cors-advisory.mdenisa_euvd
- https://pypi.org/project/Sanic-Cors/enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan