{"id":"CVE-2019-25211","published":"2024-06-28T00:00:00Z","modified":"2025-11-03T18:07:54Z","title":"parseWildcardRules in Gin-Gonic CORS middleware before 1.6.0 mishandles a wildcard at the end of an origin string…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00431,"percentile":0.38263,"provenance":"source"},"cwes":[{"id":"CWE-346","name":"Origin Validation Error"}],"references":[{"url":"https://github.com/gin-contrib/cors/pull/57","tags":[]},{"url":"https://github.com/gin-contrib/cors/pull/106","tags":[]},{"url":"https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0","tags":[]},{"url":"https://github.com/gin-contrib/cors/releases/tag/v1.6.0","tags":[]},{"url":"https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00024.html","tags":[]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":7.65},{"name":"CVSS severity","points":6.37}]},"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2024-07-09T15:33:30.863031Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gin-gonic/gin","vulnerableRanges":["<1.6.0"],"patched":["1.6.0"],"from":["GHSA-869c-j7wc-8jqv"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/gin-contrib/cors","vulnerableRanges":["<1.6.0"],"patched":["1.6.0"],"from":["GHSA-869c-j7wc-8jqv","GO-2024-2955"],"provenance":"source"}],"summary":{"text":"The parseWildcardRules function in the Gin-Gonic CORS middleware, before version 1.6.0, mishandles a wildcard placed at the end of an origin string, so origins that merely share a prefix with an allowed pattern are accepted. An attacker with network access can send cross-origin requests from a domain such as an look-alike host that matches the wildcard pattern, with no authentication or user interaction required, and the server will treat that origin as trusted.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:22Z"},"euvd":{"id":"EUVD-2024-1974","exploited":false,"provenance":"source"}}