CVE-2019-25211 Affecting golang-github-gin-contrib-cors package, versions *


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.43% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2610-GOLANGGITHUBGINCONTRIBCORS-21190033
  • published25 Oct 2026
  • disclosed29 Jun 2024

Introduced: 29 Jun 2024

CVE-2019-25211  (opens in a new tab)

How to fix?

There is no fixed version for Ubuntu:26.10 golang-github-gin-contrib-cors.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-github-gin-contrib-cors package and not the golang-github-gin-contrib-cors package as distributed by Ubuntu. See How to fix? for Ubuntu:26.10 relevant fixed versions and status.

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.