{"id":"CVE-2019-25211","state":"PUBLISHED","title":"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 i","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.","publishedAt":"2024-06-28T00:00:00.000Z","updatedAt":"2025-11-03T18:07:54.695Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","source":"CISA-ADP"},"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://github.com/gin-contrib/cors/pull/57","https://github.com/gin-contrib/cors/pull/106","https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0","https://github.com/gin-contrib/cors/releases/tag/v1.6.0","https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d","https://lists.debian.org/debian-lts-announce/2025/08/msg00024.html"],"weaknesses":["CWE-346"],"ingestedAt":"2026-10-29T19:45:53.332Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2019/25xxx/CVE-2019-25211.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2019-25211","state":"PUBLISHED","datePublished":"2024-06-28T00:00:00.000Z","dateUpdated":"2025-11-03T18:07:54.695Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2024-06-28T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://github.com/gin-contrib/cors/pull/57"},{"url":"https://github.com/gin-contrib/cors/pull/106"},{"url":"https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0"},{"url":"https://github.com/gin-contrib/cors/releases/tag/v1.6.0"},{"url":"https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d"}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"n/a"}]}],"providerMetadata":{"shortName":"mitre","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateUpdated":"2024-06-28T23:38:39.161Z"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"gin-contrib","product":"cors","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThan":"1.6.0","versionType":"custom"}],"cpes":["cpe:2.3:a:gin-contrib:cors:*:*:*:*:*:*:*:*"]}],"metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":9.1,"attackVector":"NETWORK","baseSeverity":"CRITICAL","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"NONE","privilegesRequired":"NONE","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-07-09T15:33:30.863031Z","id":"CVE-2019-25211","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-346","type":"CWE","lang":"en","description":"CWE-346 Origin Validation Error"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-03-14T18:16:31.181Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/gin-contrib/cors/pull/57","tags":["x_transferred"]},{"url":"https://github.com/gin-contrib/cors/pull/106","tags":["x_transferred"]},{"url":"https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0","tags":["x_transferred"]},{"url":"https://github.com/gin-contrib/cors/releases/tag/v1.6.0","tags":["x_transferred"]},{"url":"https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00024.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T18:07:54.695Z"}}]}}}