GO-2024-2955

Source
https://pkg.go.dev/vuln/GO-2024-2955
Import Source
https://vuln.go.dev/ID/GO-2024-2955.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2024-2955
Aliases
Published
2024-07-02T19:23:53Z
Modified
2024-07-02T19:57:15.680795Z
Summary
Gin mishandles a wildcard in the origin string in github.com/gin-contrib/cors
Details

Gin-Gonic CORS middleware mishandles a wildcard at the end of an origin string. Examples: https://example.community/* is accepted by the origin string https://example.com/* and http://localhost.example.com/* is accepted by the origin string http://localhost/* .

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2024-2955"
}
References
Credits
    • @maxshine

Affected packages

Go / github.com/gin-contrib/cors

Package

Name
github.com/gin-contrib/cors
View open source insights on deps.dev
Purl
pkg:golang/github.com/gin-contrib/cors

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.0

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/gin-contrib/cors",
            "symbols": [
                "Config.parseWildcardRules",
                "Default",
                "New"
            ]
        }
    ]
}