CVE-2026-37737
MEDIUM 6.5CVSS 3.1sanic-cors contains an improper regular expression in the try_match() function
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.
- Published
- 5 Jun 2026
- Last modified
- 23 Jul 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-346
- Also known as
- GHSA-94jw-hqvj-vw74PYSEC-2026-3539
- Sources
- NVDJSONOSV GHSA-94jw-hqvj-vw74JSONOSV PYSEC-2026-3539JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | sanic-cors | <= 2.2.0 |
References
- https://github.com/ashleysommer/sanic-cors · PACKAGE
- https://github.com/ashleysommer/sanic-cors/blob/master/sanic_cors/core.py · WEB
- https://github.com/npbhatter17/security-advisories/blob/main/CVE-2026-37737-sanic-cors-advisory.md · WEB
- https://pypi.org/project/Sanic-Cors/ · WEB, PACKAGE
- https://nvd.nist.gov/vuln/detail/CVE-2026-37737 · ADVISORY
- https://github.com/advisories/GHSA-94jw-hqvj-vw74 · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 5 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 23 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Jun 2026)