GO-2024-2574

Source
https://pkg.go.dev/vuln/GO-2024-2574
Import Source
https://vuln.go.dev/ID/GO-2024-2574.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2024-2574
Aliases
Published
2024-05-20T19:46:13Z
Modified
2024-05-20T20:12:53.731737Z
Summary
Insecure CORS Configuration allowing wildcard origin with credentials in github.com/gofiber/fiber/v2
Details

The CORS middleware allows for insecure configurations that could potentially expose the application to multiple CORS-related vulnerabilities. Specifically, it allows setting the Access-Control-Allow-Origin header to a wildcard ("*") while also having the Access-Control-Allow-Credentials set to true, which goes against recommended security best practices.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2024-2574"
}
References

Affected packages

Go / github.com/gofiber/fiber/v2

Package

Name
github.com/gofiber/fiber/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/gofiber/fiber/v2

Affected ranges

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

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/gofiber/fiber/v2/middleware/cors",
            "symbols": [
                "New",
                "matchSubdomain"
            ]
        }
    ]
}