CVE-2019-25211
Gin mishandles a wildcard at the end of an origin string
Reported by mitre · Published June 28, 2024
github.com/gin-contrib/cors is fixed in 1.6.0 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/gin-contrib/cors | Go Modules | 1.6.0 |
| cors | gin-contrib | 1.6.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| github.com | gin-contrib/cors | 0 |
| github.com | gin-gonic/gin | 0 |
| gin-contrib | cors | 0 |
Timeline
- Jun 28, 2024 CVE Published
- Jun 29, 2024 EPSS Score (30 in total, the first dated here)
- Mar 20, 2026 Security Advisory
- Jun 17, 2026 CVE Updated
- Sep 11, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-25211
vulnetix vdb fixes CVE-2019-25211
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-25211/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart