Lucene search

K
githubGitHub Advisory DatabaseGHSA-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
GitHub Advisory Database
github.com
1
gin-gonic
cors middleware
wildcard.

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.

Affected configurations

Vulners
Node
github.com\/gingonic\/ginRange<1.6.0
CPENameOperatorVersion
github.com/gin-gonic/ginlt1.6.0

6.8 Medium

AI Score

Confidence

High

Related for GHSA-869C-J7WC-8JQV