sanic-cors version 2.2.0 and prior contains an improper regular expression in the…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and GitHub. Impact type from CWE-346.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | sanic-cors (PyPI) | up to 2.2.0 | — | No fix listed | GHSA-94jw-hqvj-vw74 |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- sanic-cors (PyPI) Vendor— Affected up to 2.2.0 Fixed in — No fix listed GHSA-94jw-hqvj-vw74
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-37737
- 2026-10-03 Alias added: GHSA-94jw-hqvj-vw74
References
Sources
- CVE-2026-37737 · CVE Program
- CVE-2026-37737 · NVD
- FIRST EPSS
- GHSA-94jw-hqvj-vw74 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences