CVE-2019-25211
Gin mishandles a wildcard at the end of an origin string
Summary
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/gin-contrib/cors@v1.6.0
go get github.com/gin-gonic/gin@v1.6.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| github.com/gin-contrib/cors | go | All versions | 1.6.0 |
| github.com/gin-gonic/gin | go | All versions | 1.6.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-346Origin Validation ErrorMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://nvd.nist.gov/vuln/detail/CVE-2019-25211ADVISORY
- https://github.com/gin-contrib/cors/pull/106WEB
- https://github.com/gin-contrib/cors/pull/57WEB
- https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850dWEB
- https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0WEB
- https://github.com/gin-contrib/cors/releases/tag/v1.6.0WEB
- https://github.com/gin-gonic/ginPACKAGE
- https://lists.debian.org/debian-lts-announce/2025/08/msg00024.htmlWEB
Frequently Asked Questions
- What is CVE-2019-25211?
- Gin mishandles a wildcard at the end of an origin string This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2019-25211?
- CVE-2019-25211 affects github.com/gin-contrib/cors and github.com/gin-gonic/gin. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-25211 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2026-55209CRITICAL
resdata has Classic Buffer Overflow, Improper Validation of Array Index, NULL Pointer Dereference and Out-of-bounds Read
- CVE-2026-77414CRITICAL
JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions
- CVE-2026-77415CRITICAL
JSONata vulnerable to Arbitrary Code Execution via crafted JSONata expressions
- CVE-2026-77413CRITICAL
JSONata: Arbitrary Code Execution via crafted JSONata expressions
- CVE-2026-76904CRITICAL
GeoTools has unauthenticated SQL injection in the jsonArrayContains filter function against PostGIS layers
- CVE-2026-54061CRITICAL
Dgraph Alpha group stores can be replaced via unauthenticated external snapshot import
- CVE-2026-55445CRITICAL
Qinglong has an incomplete fix for CVE-2026-3965: Improper Authentication
- CVE-2026-61539CRITICAL
Xinference vulnerable to remote code execution via unsafe `eval()` in Llama3 tool-call parsing
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies