CVE-2019-25211
published critical CVSS 3.1 · 9.1github.com/gin-contrib/cors: Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| gin-contrib | — | cors0 to < 1.6.0 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Debian | bullseye | golang-github-gin-contrib-cors | Advisory build | 1.3.1-1+deb11u1 | DLA-4285-1 |
| Ubuntu | focal | golang-github-gin-contrib-cors | Advisory build | 1.3.0-2ubuntu0.1~esm1 | USN-8983-1 |
| Ubuntu | focal | golang-github-gin-contrib-cors-dev | Advisory build | 1.3.0-2ubuntu0.1~esm1 | USN-8983-1 |
| Ubuntu | jammy | golang-github-gin-contrib-cors | Advisory build | 1.3.1-1+deb11u1build0.22.04.1 | USN-8983-1 |
| Ubuntu | jammy | golang-github-gin-contrib-cors-dev | Advisory build | 1.3.1-1+deb11u1build0.22.04.1 | USN-8983-1 |
| Ubuntu | noble | golang-github-gin-contrib-cors | Advisory build | 1.4.0-1ubuntu0.1~esm1 | USN-8983-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | noble | golang-github-gin-contrib-cors-dev | Advisory build | 1.4.0-1ubuntu0.1~esm1 | USN-8983-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
| gin-contrib | cors | 0 to < 1.6.0 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
2- n/a
- CWE-346 CWE-346 Origin Validation Error
References
6- https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d
- https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0
- https://github.com/gin-contrib/cors/pull/106
- https://github.com/gin-contrib/cors/pull/57
- https://github.com/gin-contrib/cors/releases/tag/v1.6.0
- https://lists.debian.org/debian-lts-announce/2025/08/msg00024.html
Provider assertions
3mitre · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 40061d27fa5b2a8a6b80fe7ba249b03e6902ea0f1a0190c8997d9548f30ad79d
- Ingested
- 23 Sep 2026, 07:46:49 UTC
- Source record
- Official CVE record