CVE-2019-25211 — Vulnerability in github.com/gin-contrib/cors —...
Gin mishandles a wildcard at the end of an origin string
Summary
Advisory Timeline
- First published June 29, 2024 (835 days ago).
- Last revised November 3, 2025 — 493 days after initial publication.
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)
Affects 1 ecosystem: go (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-107806CRITICAL
Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite
- CVE-2026-68582CRITICAL
Vikunja: Link-share token reads any tenant's kanban buckets and enumerates usernames/IDs instance-wide (BOLA)
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies