Debian Security Tracker
DEBIAN-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
| Ecosystem | Package | Affected versions |
|---|---|---|
| Debian:12 | golang-github-gin-contrib-cors | All versions before 1.4.0-1+deb12u1 (fixed in 1.4.0-1+deb12u1) |
| Debian:13 | golang-github-gin-contrib-cors | All versions before 1.4.0-1+deb13u1 (fixed in 1.4.0-1+deb13u1) |