CVE-2026-37737 sanic-cors contains an improper regular expression in the try_match() function
MediumCVSS 6.5
EPSS 0.24%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi sanic-cors(PyPI) | <= 2.2.0; = 0.4.1; = 0.4.1.2; = 0.4.1.4 +35 more | after 2.2.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi sanic-cors(PyPI) | <= 2.2.0 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.10.0 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.10.0.post1 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.10.0.post2 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.10.0.post3 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.10.0b1 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.4.1 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.4.1.2 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.4.1.4 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.5.1.0 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.5.4.1 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.5.4.2 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.6.0.0 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.6.0.1 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.6.0.2 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.0 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.1 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.2 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.3 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.4 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.5 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.6 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.7 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.8 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.8.post1 | No fix listed |
Show 14 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi sanic-cors(PyPI) | = 0.9.8.post2 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.8.post3 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.9 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.9.post1 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.9.post2 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.9.post3 | No fix listed |
| pypi sanic-cors(PyPI) | = 0.9.9.post4 | No fix listed |
| pypi sanic-cors(PyPI) | = 1.0.0 | No fix listed |
| pypi sanic-cors(PyPI) | = 1.0.1 | No fix listed |
| pypi sanic-cors(PyPI) | = 2.0.0 | No fix listed |
| pypi sanic-cors(PyPI) | = 2.0.1 | No fix listed |
| pypi sanic-cors(PyPI) | = 2.1.0 | No fix listed |
| pypi sanic-cors(PyPI) | = 2.2.0 | No fix listed |
| pypi sanic-cors(PyPI) | = 2.2.0b1 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- github.com
- github.com exploit
- pypi.org
- pypi.org product
- github.com vendor-advisory