Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-25211
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:46 UTC · Revision 1

Source evidence

CVE-2019-25211

core-osv · Original source

Published 29 Jun 2024, 00:15 UTC

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.

osv:CVE-2019-25211
Complete source record
{
  "id": "0b27414b505782fa46a7aa55e1df85d8cb326733c321aeb69dbdbf46acf78ff2",
  "url": "https://osv.dev/vulnerability/CVE-2019-25211",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-25211",
    "summary": "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.",
    "evidence": "osv:CVE-2019-25211",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2019-25211",
      "aliases": [
        "CVE-2019-25211",
        "GHSA-869c-j7wc-8jqv",
        "GO-2024-2955"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/gin-contrib/cors",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "90a7c66401d66f6c7ac120dbe1ae7b63e7e4271f"
                },
                {
                  "fixed": "27b723a473efd80d5a498fa9f5933c80204c850d"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.6.0"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "fixed": "27b723a473efd80d5a498fa9f5933c80204c850d"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "90a7c66401d66f6c7ac120dbe1ae7b63e7e4271f"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.6.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.5.0",
            "v1.4.0",
            "v1.3.1",
            "v1.3.0",
            "v1.2",
            "v1.1",
            "v1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-25211.json"
          }
        }
      ],
      "modified": "2026-10-20T10:51:39.147458817Z",
      "provider": "osv",
      "references": [
        "https://github.com/gin-contrib/cors/compare/v1.5.0...v1.6.0",
        "https://github.com/gin-contrib/cors/releases/tag/v1.6.0",
        "https://lists.debian.org/debian-lts-announce/2025/08/msg00024.html",
        "https://github.com/gin-contrib/cors/commit/27b723a473efd80d5a498fa9f5933c80204c850d",
        "https://github.com/gin-contrib/cors/pull/106",
        "https://github.com/gin-contrib/cors/pull/57"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2019-25211",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 382730,
  "published_at": "2024-06-29T00:15:02.107+00:00"
}