VDB

CVE-2019-25211

CVE-2019-25211 PUBLISHED CVSS 9.1 CRITICAL

Gin mishandles a wildcard at the end of an origin string

Reported by mitre · Published June 28, 2024

github.com/gin-contrib/cors is fixed in 1.6.0 (Go Modules)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/gin-contrib/corsGo Modules1.6.0
corsgin-contrib1.6.0

Risk scores

CVSS 3.1
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected products

VendorProductVersions
n/an/an/a
n/an/a*
github.comgin-contrib/cors0
github.comgin-gonic/gin0
gin-contribcors0

Timeline

  • Jun 28, 2024 CVE Published
  • Jun 29, 2024 EPSS Score (30 in total, the first dated here)
  • Mar 20, 2026 Security Advisory
  • Jun 17, 2026 CVE Updated
  • Sep 11, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2019-25211
vulnetix vdb fixes CVE-2019-25211

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-25211/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›