CVE-2019-25211
CRITICAL9.1EPSS 0.39%Gin mishandles a wildcard at the end of an origin string
Published: 6/29/2024Modified: 11/3/2025
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.
Affected packages (5)
- Debian/golang-github-gin-contrib-corsfrom 0, < 1.3.1-1+deb11u1
- Debian/golang-github-gin-contrib-corsfrom 0, < 1.3.1-1+deb11u1
- Go/github.com/gin-contrib/corsfrom 0, < 1.6.0
- Go/github.com/gin-contrib/corsfrom 0, < 1.6.0
- Go/github.com/gin-gonic/ginfrom 0, < 1.6.0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | CRITICAL9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
References (10)
- ADVISORYhttps://github.com/advisories/GHSA-869c-j7wc-8jqv
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2019-25211
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2019-25211
- PATCHhttps://github.com/gin-gonic/gin
- WEBhttps://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d
- WEBhttps://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0
- WEBhttps://github.com/gin-contrib/cors/pull/106
- WEBhttps://github.com/gin-contrib/cors/pull/57
- WEBhttps://github.com/gin-contrib/cors/releases/tag/v1.6.0
- WEBhttps://lists.debian.org/debian-lts-announce/2025/08/msg00024.html