{"id":"EUVD-2024-0629","revision":null,"records":[{"revision":"e54e0d1bd83d4d4997b6fe41345c37ab","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-25124","aliases":[],"title":"Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials","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.","state":0,"publishedAt":"2024-02-21T21:01:44.672+00:00","modifiedAt":"2024-08-26T14:39:19.825+00:00","affected":[{"ecosystem":"Vendor product","name":"fiber","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gofiber\",\n                    \"product\": \"fiber\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 2.52.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","score":9.4,"severity":"CRITICAL"}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg","https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23","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","http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-25124","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-25124","identifiers":["CVE-2024-25124"]},"retained":false,"historicalAffected":[]},{"revision":"72ebcf385a5b44aab2233f6c3e758c86","observedAt":"2026-11-15T01:51:42.696+00:00","statement":{"source":"euvd","id":"EUVD-2024-0629","aliases":["CVE-2024-25124","GHSA-fmg4-x8pw-hjhg"],"title":"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 …","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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","score":9.4,"severity":null}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg","https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23","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","http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-0629","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Feb 21, 2024, 9:01:44 PM","dateUpdated":"Aug 26, 2024, 2:39:19 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2024-0629","identifiers":["EUVD-2024-0629","CVE-2024-25124","GHSA-fmg4-x8pw-hjhg"]},"retained":false,"historicalAffected":[]},{"revision":"0b865eeb421a486da6184d9b0711e102","observedAt":"2026-10-24T23:17:28.568+00:00","statement":{"source":"nvd","id":"CVE-2024-25124","aliases":[],"title":"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 …","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.","state":0,"publishedAt":"2024-02-21T21:15:09.25+00:00","modifiedAt":"2026-06-17T07:15:33.203+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","score":9.4,"severity":"CRITICAL"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"severity":"CRITICAL"}],"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","https://github.com/gofiber/fiber/releases/tag/v2.52.1","https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg","https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2024-25124","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-346","CWE-942"],"productCriteria":["cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:*"],"sourceDates":{"published":"2024-02-21T21:15:09.250","lastModified":"2026-06-17T07:15:33.203"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2024-25124","identifiers":["CVE-2024-25124"]},"retained":false,"historicalAffected":[]},{"revision":"e359392988cb44728928220ccace4ca3","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-fmg4-x8pw-hjhg","aliases":["CVE-2024-25124","GO-2024-2574"],"title":"Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials","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.\n\n## Impact\nThe 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.\n\n## Proof of Concept\nThe code in cors.go allows setting a wildcard in the AllowOrigins while having AllowCredentials set to true, which could lead to various vulnerabilities.\n\n## Potential Solution\nHere is a potential solution to ensure the CORS configuration is secure:\n\n```go\nfunc New(config ...Config) fiber.Handler {\n    if cfg.AllowCredentials && cfg.AllowOrigins == \"*\" {\n        panic(\"[CORS] Insecure setup, 'AllowCredentials' is set to true, and 'AllowOrigins' is set to a wildcard.\")\n    }\n    // Return new handler goes below\n}\n\nThe middleware will not allow insecure configurations when using `AllowCredentials` and `AllowOrigins`.\n```\n\n## Workarounds\nFor the meantime, users are advised to 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, browsers and utilities that enforce CORS policies are not affected by this.\n\n## References\n[MDN Web Docs on CORS Errors](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials)\n[CodeQL on CORS Misconfiguration](https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials/)\n[PortSwigger on Exploiting CORS Misconfigurations](http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html)\n[WhatWG CORS protocol and credentials ](https://fetch.spec.whatwg.org/#cors-protocol-and-credentials)","state":0,"publishedAt":"2024-02-22T18:25:18+00:00","modifiedAt":"2026-09-10T03:50:06.1745107+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":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg","https://nvd.nist.gov/vuln/detail/CVE-2024-25124","https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23","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","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","http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html"],"sourceUrl":"https://github.com/advisories/GHSA-fmg4-x8pw-hjhg","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-fmg4-x8pw-hjhg","identifiers":["GHSA-fmg4-x8pw-hjhg","CVE-2024-25124","GO-2024-2574"]},"retained":false,"historicalAffected":[]},{"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":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-16T22:28:24.4991351+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-16T22:28:24.4991351+00:00","lastSuccessAt":"2026-11-16T22:28:24.7043575+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.7043586+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-6be044d0e08779dadd136f949a536de4047af96f5d7bceb7e190ecffbb8f18ca-b7ae3bdb0699f2500ff81a2529250ecaa285d9a3824324996c109bf112b16dad","complete":true,"records":426173,"lastAttemptAt":"2026-11-16T22:25:58.3805736+00:00","lastSuccessAt":"2026-11-16T21:26:21.4103203+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:25:58.3805736+00:00","snapshotPublishedAt":"2026-11-16T21:21:33+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-a154cbc1da6344eebf61cc2b79e84032","complete":true,"records":13831,"lastAttemptAt":"2026-11-16T22:29:29.8673047+00:00","lastSuccessAt":"2026-11-16T22:29:29.864+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:29:29.864+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13885,"expectedIdentifiers":13885,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-16T22:28:24.4991351+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-16T22:28:24.4991351+00:00","lastSuccessAt":"2026-11-16T22:28:24.7050614+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.7050618+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-e852cf3f102d4dfc8420eba9ed8027fd","complete":false,"records":13844,"lastAttemptAt":"2026-11-16T22:28:51.1313357+00:00","lastSuccessAt":"2026-11-16T22:28:51.121+00:00","error":"10 identifier lookups failed; latest failures include HttpError (HTTP 503). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-16T22:28:51.121+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13574,"expectedIdentifiers":13885,"failedIdentifiers":10},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-64eea06dbd27de8464d5dbce1b78cc794cc59e2d901516ae0d3ea76e624cdae0","complete":true,"records":9955,"lastAttemptAt":"2026-11-16T22:28:24.3319179+00:00","lastSuccessAt":"2026-11-14T13:57:23.1208135+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.3319179+00:00","snapshotPublishedAt":"2026-11-14T13:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-16T22:25:58.4256746+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:25:58.4256746+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-16T22:28:24.4567855+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.4567855+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-879bf87060e1e5a31d5f9d7958b545032385ae9cf57c2a5b470e1d57f9693bf8","complete":true,"records":232556,"lastAttemptAt":"2026-11-16T22:28:24.1750579+00:00","lastSuccessAt":"2026-11-16T22:28:22.9672905+00:00","error":null,"lastVerifiedAt":"2026-11-16T22:28:24.1750579+00:00","snapshotPublishedAt":"2026-11-16T22:18:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}