ADVISORIES

Vulnerability

CVE-2019-25211

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.

6 advisories report this vulnerability, across 3 ecosystems.

Critical severity All Debian 2Go 2Ubuntu 2

Advisories in Go

  • GHSA-869c-j7wc-8jqv

    Gin mishandles a wildcard at the end of an origin string

    Critical CVE-2019-25211 Go Updated 3 November 2025
  • GO-2024-2955

    Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors

    CVE-2019-25211 Go Updated 2 July 2024

References