CVE-2019-25211
CRITICAL 9.1CVSS 3.1Gin mishandles a wildcard at the end of an origin string
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.
- Published
- 29 Jun 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Deferred
- Weakness
- CWE-346
- Also known as
- GHSA-869c-j7wc-8jqvGO-2024-2955
- Sources
- NVDJSONOSV GHSA-869c-j7wc-8jqvJSONOSV GO-2024-2955JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/gin-gonic/gin | < 1.6.0 | 1.6.0 |
| OSV | Go | github.com/gin-contrib/cors | < 1.6.0 | 1.6.0 |
References
- https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d · WEB, FIX
- https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0 · WEB
- https://github.com/gin-contrib/cors/pull/106 · WEB, FIX
- https://github.com/gin-contrib/cors/pull/57 · WEB, FIX
- https://github.com/gin-contrib/cors/releases/tag/v1.6.0 · WEB
- https://lists.debian.org/debian-lts-announce/2025/08/msg00024.html · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2019-25211 · ADVISORY
- https://github.com/gin-gonic/gin · PACKAGE
- https://github.com/advisories/GHSA-869c-j7wc-8jqv · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 29 Jun 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Jul 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Jun 2024)