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.
References (6)
Core 6
Core References
Various Sources
https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0
Issue Tracking
https://github.com/gin-contrib/cors/pull/106
Issue Tracking
https://github.com/gin-contrib/cors/pull/57
Release Notes
https://github.com/gin-contrib/cors/releases/tag/v1.6.0
Scores
CVSS v3
9.1
EPSS
0.0043
EPSS Percentile
34.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
yes
Technical Impact
total
Details
CWE
CWE-346
Status
published
Products (2)
gin-contrib/cors
0 - 1.6.0Go
gin-gonic/gin
0 - 1.6.0Go
Published
Jun 29, 2024
Tracked Since
Feb 18, 2026