Advisory

GO-2024-2574

Also known as: CVE-2024-25124, GHSA-fmg4-x8pw-hjhg

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.

Severity

Not rated by the source.

Dates

Published
2024-05-20 19:46 UTC
Modified
2024-05-20 20:13 UTC

Affected packages and fixes

github.com/gofiber/fiber/v2

Go · All systems

Affected

  • introduced 0, fixed 2.52.1 (semver)

Fixed versions

2.52.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences