---
title: "CVE-2024-25124: Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials"
url: https://erroneo.us/security/cve/CVE-2024-25124/
description: "CVE-2024-25124 (github.com/gofiber/fiber/v2 (Go)): Fiber is a web framework written in go. Prior to version 2.52.1, the CORS middleware allows for insecure…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-02-21
date_modified: 2026-03-15
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-25124"
kev: false
cvss: 9.4
epss: 0.00655
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-25124: Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.7% , percentile 51: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 51% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes github.com/gofiber/fiber/v2 (Go) < 2.52.1, fixed in 2.52.1 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- Go `github.com/gofiber/fiber/v2` < 2.52.1 → fixed: 2.52.1

## Affected products (CVE record)

- gofiber fiber: < 2.52.1

## Severity

- GitHub_M CVSS 3.1: 9.4 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`
- GitHub CVSS 3.1: 9.4 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable no , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.66% probability of exploitation activity in the next 30 days; percentile 51.

## Sources

- [GitHub Advisory GHSA-fmg4-x8pw-hjhg](https://github.com/advisories/GHSA-fmg4-x8pw-hjhg)
- [CVE.org record CVE-2024-25124](https://www.cve.org/CVERecord?id=CVE-2024-25124)
- [NVD entry CVE-2024-25124](https://nvd.nist.gov/vuln/detail/CVE-2024-25124)
- [github.com](https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg)
- [github.com](https://github.com/gofiber/fiber/commit/f0cd3b44b086544a37886232d0530601f2406c23)
- [codeql.github.com](https://codeql.github.com/codeql-query-help/javascript/js-cors-misconfiguration-for-credentials)
- [developer.mozilla.org](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials)
- [fetch.spec.whatwg.org](https://fetch.spec.whatwg.org/#cors-protocol-and-credentials)
- [github.com](https://github.com/gofiber/fiber/releases/tag/v2.52.1)
- [saturncloud.io](https://saturncloud.io/blog/cors-cannot-use-wildcard-in-accesscontrolalloworigin-when-credentials-flag-is-true)
- [blog.portswigger.net](http://blog.portswigger.net/2016/10/exploiting-cors-misconfigurations-for.html)

---
Source page: https://erroneo.us/security/cve/CVE-2024-25124/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
