All reports
Critical

Gin mishandles a wildcard at the end of an origin string

Affected versions

Version ranges need review.

Affected versions
<1.6.0
Fixed version
1.6.0
Affected versions
< 1.6.0
Fixed version
1.6.0
Affected versions
< 1.6.0
Fixed version
1.6.0
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2019-25211

Probability of exploitation in the next 30 days: 0.43%

FIRST EPSS · 2026-11-22

Description

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.

Links

Credits

  • @maxshine