CVE-2019-25211

parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string, e.g., https://example.community/* is allowed when the intention is that only https://example.com/* should be allowed, and http://localhost.example.com/* is allowed when the intention is that only http://localhost/* should be allowed.

Score
CVSS 3.1 9.1 Critical
Status
Deferred - cve@mitre.org
Published
2024-06-29
Last modified
2025-11-03
Weaknesses
CWE-346

Affected products

References