Lucene search

K
osvGoogleOSV:GHSA-869C-J7WC-8JQV
HistoryJun 29, 2024 - 6:31 a.m.

Gin mishandles a wildcard at the end of an origin string

2024-06-2906:31:40
Google
osv.dev
gin-gonic
cors
middleware
wildcard
mishandling
software
security

6.8 Medium

AI Score

Confidence

High

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.

CPENameOperatorVersion
github.com/gin-gonic/ginlt1.6.0

6.8 Medium

AI Score

Confidence

High

Related for OSV:GHSA-869C-J7WC-8JQV