cve.bz

CVE-2019-25211

9.1 criticalEPSS 0.4%

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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.4% chance of exploitation in the next 30 days; higher than 37% of CVEs (scores of 2026-10-31)
CWE
CWE-346
Published
Modified
Record from
the NVD, synced

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-869c-j7wc-8jqvGogithub.com/gin-gonic/gin<1.6.01.6.0
GHSA-869c-j7wc-8jqvGogithub.com/gin-contrib/cors<1.6.01.6.0
GO-2024-2955Gogithub.com/gin-contrib/cors<1.6.01.6.0

References

Check your stackJSON