{"cve":"CVE-2024-25124","nvd":{"published":"2024-02-21T21:15:09.250","modified":"2026-06-17T07:15:33.203","status":"Analyzed","description":"Fiber is a web framework written in go. Prior to version 2.52.1, 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. The impact of this misconfiguration is high as it can lead to unauthorized access to sensitive user data and expose the system to various types of attacks listed in the PortSwigger article linked in the references. Version 2.52.1 contains a patch for this issue. As a workaround, users may manually validate the CORS configurations in their implementation to ensure that they do not allow a wildcard origin when credentials are enabled. The browser fetch api, as well as browsers and utilities that enforce CORS policies, are not affected by this.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-346","CWE-942"],"references":["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/commit/f0cd3b44b086544a37886232d0530601f2406c23"],"products":["gofiber:fiber"],"source":"nvd","synced_at":"2026-10-19T21:45:59.823092188+00:00"},"epss":{"cve":"CVE-2024-25124","score":0.00655,"percentile":0.51362,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fmg4-x8pw-hjhg","url":"https://osv.dev/vulnerability/GHSA-fmg4-x8pw-hjhg","summary":"Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials","modified":"2026-09-10T03:50:06.174510650Z","packages":[{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","ranges":["<2.52.1"],"fixed":["2.52.1"]}]},{"id":"GO-2024-2574","url":"https://osv.dev/vulnerability/GO-2024-2574","summary":"Insecure CORS Configuration allowing wildcard origin with credentials in github.com/gofiber/fiber/v2","modified":"2024-05-20T20:13:52.203496Z","packages":[{"ecosystem":"Go","name":"github.com/gofiber/fiber/v2","purl":"pkg:golang/github.com/gofiber/fiber/v2","ranges":["<2.52.1"],"fixed":["2.52.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}