What’s Vulnerable › Vulnerabilities

CVE-2019-25211

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Gin-Contrib Cors 1.6.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2019-25211 or the next vulnerability affects your stack