{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-25211","id":"CVE-2019-25211","title":"Gin mishandles a wildcard at the end of an origin string","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.","descriptionLong":"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":"2024-06-28T00:00:00.000Z","updated":"2026-10-20T10:51:39.147458817Z","reserved":"2024-06-28T00:00:00.000Z","status":"Deferred","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"critical","source":"GitHub"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"CISA-ADP"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"OSV"},{"version":"3.1","score":9.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","rating":"critical","source":"GitHub"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/gin-gonic/gin","purl":"pkg:golang/github.com/gin-gonic/gin","ranges":["<1.6.0"],"fixed":["1.6.0"],"advisory":"GHSA-869c-j7wc-8jqv"},{"ecosystem":"Go","name":"github.com/gin-contrib/cors","purl":"pkg:golang/github.com/gin-contrib/cors","ranges":["<1.6.0"],"fixed":["1.6.0"],"advisory":"GHSA-869c-j7wc-8jqv"}],"cwes":["CWE-346"],"aliases":["GHSA-869c-j7wc-8jqv","GO-2024-2955"],"references":[{"url":"https://github.com/gin-contrib/cors/pull/57","tags":["x_transferred","fix","web"]},{"url":"https://github.com/gin-contrib/cors/pull/106","tags":["x_transferred","fix","web"]},{"url":"https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0","tags":["x_transferred","web"]},{"url":"https://github.com/gin-contrib/cors/releases/tag/v1.6.0","tags":["x_transferred","web"]},{"url":"https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d","tags":["x_transferred","fix","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00024.html","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25211","tags":["advisory"]},{"url":"https://github.com/gin-gonic/gin","tags":["package"]},{"url":"https://github.com/advisories/GHSA-869c-j7wc-8jqv","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total"},"epss":0.00431,"epssPercentile":0.38037,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-25211","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-25211","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-25211","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-869c-j7wc-8jqv","ok":true,"note":"GHSA-869c-j7wc-8jqv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-25211","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}