{"id":"CVE-2026-37737","aliases":["CVE-2026-37737","GHSA-94jw-hqvj-vw74","PYSEC-2026-3539"],"related":[],"kind":"vulnerability","state":"published","title":"sanic-cors contains an improper regular expression in the try_match() function","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"}],"published":"2026-06-05T00:00:00.000Z","modified":"2026-07-23T15:11:37.862Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-346","CWE-625"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.2.0"}],"ecosystem":"PyPI","package":"sanic-cors","purl":"pkg:pypi/sanic-cors","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.2.0"}],"ecosystem":"PyPI","package":"sanic-cors","purl":"pkg:pypi/sanic-cors","source":"pysec"}],"references":[{"url":"https://github.com/ashleysommer/sanic-cors/blob/master/sanic_cors/core.py","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/ashleysommer/sanic-cors","tags":["package"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://pypi.org/project/Sanic-Cors/","tags":[],"sources":["cvelist","nvd"]},{"url":"https://github.com/npbhatter17/security-advisories/blob/main/CVE-2026-37737-sanic-cors-advisory.md","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-37737","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/Sanic-Cors","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/sanic-cors","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-94jw-hqvj-vw74","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-06-05T20:14:32.367Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-37737","url":"https://www.cve.org/CVERecord?id=CVE-2026-37737","licence":"CVE Terms of Use","modified":"2026-06-05T20:15:39.697Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-94jw-hqvj-vw74","url":"https://github.com/advisories/GHSA-94jw-hqvj-vw74","licence":"CC-BY-4.0","modified":"2026-07-23T15:11:37.862Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-37737","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-37737","licence":"Public domain","modified":"2026-06-17T10:41:38.747Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3539","url":"https://osv.dev/vulnerability/PYSEC-2026-3539","licence":"CC-BY-4.0","modified":"2026-07-23T15:00:23.754Z"}],"updatedAt":"2026-11-25T22:59:23.884Z","epss":{"score":0.00164,"percentile":0.05898,"date":"2026-12-01T12:00:22.000Z"}}