PT-2026-46962 · Pypi · Sanic-Cors

Published

2026-06-05

·

Updated

2026-06-05

·

CVE-2026-37737

CVSS v3.1

6.5

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions sanic-cors versions prior to 2.2.1
Description An improper regular expression is used in the try match() function within sanic cors/core.py. The function utilizes re.match without end-anchoring, which allows an attacker to bypass Cross-Origin Resource Sharing (CORS) origin allowlists. By registering a domain that begins with a trusted origin string, an unauthorized actor can gain access to cross-origin requests for authenticated resources.
Recommendations Update sanic-cors to version 2.2.1 or later.

Exploit

Fix

Origin Validation Error

Weakness Enumeration

Related Identifiers

CVE-2026-37737

Affected Products

Sanic-Cors