{"id":"GO-2024-2574","revision":"47dc5a8a80c5408da75efdf69ab6b639","records":[{"revision":"47dc5a8a80c5408da75efdf69ab6b639","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2024-2574","aliases":["CVE-2024-25124","GHSA-fmg4-x8pw-hjhg"],"title":"Insecure CORS Configuration allowing wildcard origin with credentials in github.com/gofiber/fiber/v2","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.","state":0,"publishedAt":"2024-05-20T19:46:13+00:00","modifiedAt":"2024-05-20T20:13:52.203496+00:00","affected":[{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.52.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg","https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23","http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html","https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials","https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials","https://fetch.spec.whatwg.org/#cors-protocol-and-credentials","https://github.com/gofiber/fiber/releases/tag/v2.52.1","https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true"],"sourceUrl":"https://osv.dev/vulnerability/GO-2024-2574","license":"OSV · upstream source license applies","key":"osv:GO-2024-2574","identifiers":["GO-2024-2574","CVE-2024-25124","GHSA-fmg4-x8pw-hjhg"]},"retained":false,"historicalAffected":[]}],"coverage":[]}