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

  • DEBIAN-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/*…

    CVE-2019-25211 Debian Updated 14 October 2026
  • DLA-4285-1

    golang-github-gin-contrib-cors - security update

    CVE-2019-25211 Debian Updated 20 November 2026
  • 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
  • UBUNTU-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/*…

    CVE-2019-25211 Ubuntu Updated 4 November 2026
  • USN-8983-1

    golang-github-gin-contrib-cors vulnerability

    CVE-2019-25211 Ubuntu Updated 4 November 2026

References