CVE-2026-37737
sanic-cors version 2.2.0 and prior contains an improper regular …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/ashleysommer/sanic-cors
- github.com/ashleysommer/sanic-cors/blob/master/sanic_cors/core.py
- github.com/npbhatter17/security-advisories/blob/main/CVE-2026-37737-sanic-cors-advisory.md
- pypi.org/project/Sanic-Cors/
- nvd.nist.gov/vuln/detail/CVE-2026-37737
- pypi.org/project/Sanic-Cors
- github.com/advisories/GHSA-94jw-hqvj-vw74
- nvd.nist.gov/vuln/detail/CVE-2026-37737
- cve.org/CVERecord?id=CVE-2026-37737
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.