{"id":"CVE-2019-25211","sourceIdentifier":"cve@mitre.org","published":"2024-06-29T00:15:02.107","lastModified":"2026-06-17T02:31:45.350","vulnStatus":"Deferred","cveTags":[],"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."},{"lang":"es","value":"parseWildcardRules en el middleware CORS de Gin-Gonic anterior a la 1.6.0 maneja incorrectamente un comodín al final de una cadena de origen, por ejemplo, se permite https://example.community/* cuando la intención es que solo se debería permitir https://example.com/*, y se permite http://localhost.example.com/* cuando la intención es que solo se debería permitir http://localhost/*."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","affectedData":[{"vendor":"gin-contrib","product":"cors","defaultStatus":"unknown","cpes":["cpe:2.3:a:gin-contrib:cors:*:*:*:*:*:*:*:*"],"versions":[{"version":"0","lessThan":"1.6.0","versionType":"custom","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","baseScore":9.1,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"NONE"},"exploitabilityScore":3.9,"impactScore":5.2}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-07-09T15:33:30.863031Z","id":"CVE-2019-25211","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","description":[{"lang":"en","value":"CWE-346"}]}],"references":[{"url":"https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d","source":"cve@mitre.org"},{"url":"https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0","source":"cve@mitre.org"},{"url":"https://github.com/gin-contrib/cors/pull/106","source":"cve@mitre.org"},{"url":"https://github.com/gin-contrib/cors/pull/57","source":"cve@mitre.org"},{"url":"https://github.com/gin-contrib/cors/releases/tag/v1.6.0","source":"cve@mitre.org"},{"url":"https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/gin-contrib/cors/pull/106","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/gin-contrib/cors/pull/57","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/gin-contrib/cors/releases/tag/v1.6.0","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2025/08/msg00024.html","source":"af854a3a-2127-422b-91ae-364da2661108"}]}