ADVISORIES

Ubuntu Security Notice

USN-8983-1

golang-github-gin-contrib-cors vulnerability

Details

It was discovered that the Gin CORS middleware incorrectly handled wildcards at the end of origin strings. A remote attacker could possibly use this issue to bypass the configured origin restrictions.

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)

References