GO-2024-2574

Insecure CORS Configuration allowing wildcard origin with credentials in github.com/gofiber/fiber/v2

At a glance

Published
Updated
CVE
CVE-2024-25124
Aliases
GHSA-fmg4-x8pw-hjhg

Description

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.

Affected packages

PackageVersions
Go · github.com/gofiber/fiber/v2introduced 0, fixed 2.52.1

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database