{"id":"CVE-2026-37737","published":"2026-06-05T00:00:00Z","modified":"2026-06-05T20:15:39Z","title":"sanic-cors version 2.2.0 and prior contains an improper regular expression in the try_match() function in…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00164,"percentile":0.05758,"provenance":"source"},"cwes":[{"id":"CWE-625","name":"Permissive Regular Expression"},{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://github.com/ashleysommer/sanic-cors/blob/master/sanic_cors/core.py","tags":[]},{"url":"https://github.com/ashleysommer/sanic-cors","tags":[]},{"url":"https://pypi.org/project/Sanic-Cors/","tags":[]},{"url":"https://github.com/npbhatter17/security-advisories/blob/main/CVE-2026-37737-sanic-cors-advisory.md","tags":[]}],"priority":{"score":5.7,"factors":[{"name":"EPSS percentile","points":1.15},{"name":"CVSS severity","points":4.55}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-05T20:14:32.367415Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"sanic-cors","vulnerableRanges":["<=2.2.0"],"patched":[],"from":["GHSA-94jw-hqvj-vw74","PYSEC-2026-3539"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-34844","exploited":false,"provenance":"source"}}