ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2019-25211

Details

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 packages

EcosystemPackageAffected versions
Ubuntu:Pro:20.04:LTSgolang-github-gin-contrib-cors
All versions before 1.3.0-2ubuntu0.1~esm1 (fixed in 1.3.0-2ubuntu0.1~esm1)
Ubuntu:22.04:LTSgolang-github-gin-contrib-cors
All versions before 1.3.1-1+deb11u1build0.22.04.1 (fixed in 1.3.1-1+deb11u1build0.22.04.1)
Ubuntu:Pro:24.04:LTSgolang-github-gin-contrib-cors
All versions before 1.4.0-1ubuntu0.1~esm1 (fixed in 1.4.0-1ubuntu0.1~esm1)
Ubuntu:25.10golang-github-gin-contrib-cors
All versions, no fix listed

References