Skip to main content

Origin Validation Error

CVE-2026-37737

Severity Medium
Score 6.5/10

Summary

sanic-cors 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.

  • LOW
  • NETWORK
  • NONE
  • UNCHANGED
  • REQUIRED
  • NONE
  • HIGH
  • NONE

CWE-346 - Origin Validation Error

The software does not properly verify that the source of data or communication is valid.

References

Advisory Timeline

  • Published