{"cve":"CVE-2019-25211","nvd":{"published":"2024-06-29T00:15:02.107","modified":"2026-06-17T02:31:45.350","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1},"cwes":["CWE-346"],"references":["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"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:52:00.836172422+00:00"},"epss":{"cve":"CVE-2019-25211","score":0.00431,"percentile":0.37424,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-869c-j7wc-8jqv","url":"https://osv.dev/vulnerability/GHSA-869c-j7wc-8jqv","summary":"Gin mishandles a wildcard at the end of an origin string","modified":"2025-11-03T22:47:01Z","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"]},{"ecosystem":"Go","name":"github.com/gin-contrib/cors","purl":"pkg:golang/github.com/gin-contrib/cors","ranges":["<1.6.0"],"fixed":["1.6.0"]}]},{"id":"GO-2024-2955","url":"https://osv.dev/vulnerability/GO-2024-2955","summary":"Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors","modified":"2024-07-02T19:57:15.180688Z","packages":[{"ecosystem":"Go","name":"github.com/gin-contrib/cors","purl":"pkg:golang/github.com/gin-contrib/cors","ranges":["<1.6.0"],"fixed":["1.6.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}