CVE-2024-25124 — Vulnerability in github.com/gofiber/fiber/v2 —...
Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials
Summary
Advisory Timeline
- First published February 22, 2024 (963 days ago).
- Last revised September 10, 2026 — 930 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/gofiber/fiber/v2@v2.52.1
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: go (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| github.com/gofiber/fiber/v2 | go | All versions | 2.52.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-346Origin Validation ErrorMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
References
- https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhgWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-25124ADVISORY
- https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23WEB
- https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentialsWEB
- https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentialsWEB
- https://fetch.spec.whatwg.org/#cors-protocol-and-credentialsWEB
- https://github.com/gofiber/fiberPACKAGE
- https://github.com/gofiber/fiber/releases/tag/v2.52.1WEB
- https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-trueWEB
- https://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.htmlWEB
Frequently Asked Questions
- What is CVE-2024-25124?
- Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.4/10).
- How do I check if my project is affected by CVE-2024-25124?
- CVE-2024-25124 affects github.com/gofiber/fiber/v2. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-25124 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2024-22199CRITICAL
Django Template Engine Vulnerable to XSS
- CVE-2023-45128CRITICAL
CSRF Token Reuse Vulnerability
- CVE-2024-38513CRITICAL
Session Middleware Token Injection Vulnerability
- CVE-2026-107806CRITICAL
Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite
- CVE-2026-68582CRITICAL
Vikunja: Link-share token reads any tenant's kanban buckets and enumerates usernames/IDs instance-wide (BOLA)
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies