Security mailing lists by PureSourceCode

CVE-2019-25211

CRITICAL 9.1CVSS 3.1

Gin mishandles a wildcard at the end of an origin string

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.

Published
29 Jun 2024
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Deferred
Weakness
CWE-346
Also known as
GHSA-869c-j7wc-8jqvGO-2024-2955
Sources
NVDJSONOSV GHSA-869c-j7wc-8jqvJSONOSV GO-2024-2955JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 CRITICAL 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV Go github.com/gin-gonic/gin < 1.6.0 1.6.0
OSV Go github.com/gin-contrib/cors < 1.6.0 1.6.0

References

History

  • 25 Nov 2026 20:55 UTC · NVD: first stored (published 29 Jun 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Jul 2024)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 29 Jun 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.