NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Go

CVE-2019-25211: Gin mishandles a wildcard at the end of an origin string

criticalCVSS 4.0 9.3 · 3.1 9.1GHSA-869c-j7wc-8jqv

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 Jun 29, 2024 · Updated Nov 3, 2025

Affected packages

github.com/gin-gonic/gin

Ecosystem
Go
Affected
< 1.6.0
Fixed in
1.6.0
Check
go list -m github.com/gin-gonic/gin

github.com/gin-contrib/cors

Ecosystem
Go
Affected
< 1.6.0
Fixed in
1.6.0
Check
go list -m github.com/gin-contrib/cors

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology