CVE-2019-25211Gin mishandles a wildcard at the end of an origin string
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 0.4% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.4%
- percentile 29%
- Fix
- Named by a source
- CVE published 29 Jun 2024
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.4% (+0) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- github.com/gin-contrib/cors (Go): upgrade to 1.6.0 or later on your release line.
- github.com/gin-gonic/gin (Go): upgrade to 1.6.0 or later on your release line.
- Patch: https://github.com/gin-contrib/cors/pull/106
- Patch: https://github.com/gin-contrib/cors/pull/57
- Patch: https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d
Who should check
github.com/gin-contrib/cors (Go) pkg:golang/github.com/gin-contrib/cors
- Affected< 1.6.0Fixed in1.6.0OSV (GO-2024-2955)
github.com/gin-gonic/gin (Go) pkg:golang/github.com/gin-gonic/gin
- Affected< 1.6.0Fixed in1.6.0OSV (GHSA-869c-j7wc-8jqv)
Confirmed facts
- CVSS
- 9.1 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-869c-j7wc-8jqv)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-346
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2019-25211
- patchhttps://github.com/gin-contrib/cors/pull/106
- patchhttps://github.com/gin-contrib/cors/pull/57
- patchhttps://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d
- otherhttps://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0
- otherhttps://github.com/gin-contrib/cors/releases/tag/v1.6.0
- otherhttps://github.com/gin-gonic/gin
- otherhttps://lists.debian.org/debian-lts-announce/2025/08/msg00024.html
- advisoryhttps://github.com/advisories/GHSA-869c-j7wc-8jqv
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-869c-j7wc-8jqv (GitHub Advisory Database), CC BY 4.0.
- GO-2024-2955 (Go Vulnerability Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 52 min ago · osv 52 min ago · nvd 52 min ago · epss 52 min ago · JSON · ask via MCP: explain_vulnerability
Also known as GHSA-869c-j7wc-8jqv, GO-2024-2955