Vulnerability · Published Jun 5, 2026 · Assigned by mitre

CVE-2026-37737

Medium 6.5

In plain English

A medium-severity security flaw in the sanic-cors package (PyPI). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 6% of all known vulnerabilities).

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.2%top 94.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIsanic-corsno fix listedGHSA-94jw-hqvj-vw74
PyPIsanic-corsno fix listedPYSEC-2026-3539

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

Weakness: CWE-625, CWE-346 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

References