# Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials

Advisory record · `GHSA-fmg4-x8pw-hjhg`

- **Identifiers:** `GHSA-fmg4-x8pw-hjhg` · `CVE-2024-25124` · `GO-2024-2574`
- **State:** Confirmed
- **Severity:** CVSS 9.4 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-346](https://cwe.mitre.org/data/definitions/346.html) · [CWE-942](https://cwe.mitre.org/data/definitions/942.html)
- **Tags:** [CWE-346](https://agentprime.io/advisories/tag/cwe-346.md) · [CWE-942](https://agentprime.io/advisories/tag/cwe-942.md)
- **Published:** 22 Feb 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 22 Feb 2024, 18:25 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.4: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `github.com/gofiber/fiber/v2` (Go): affected `<2.52.1`; fixed in `2.52.1`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.4 Critical, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0066, the 51st percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 21 Feb 2024, 20:29 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/gofiber/fiber/security/advisories/GHSA-fmg4-x8pw-hjhg)
- 31 Oct 2026, 14:15 UTC: First seen by agentprime
- 31 Oct 2026, 14:15 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-fmg4-x8pw-hjhg)

## Sources

- [GitHub Advisory Database: GHSA-fmg4-x8pw-hjhg](https://github.com/advisories/GHSA-fmg4-x8pw-hjhg)
- [OSV: GHSA-fmg4-x8pw-hjhg](https://osv.dev/vulnerability/GHSA-fmg4-x8pw-hjhg)
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-fmg4-x8pw-hjhg>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-fmg4-x8pw-hjhg/>. Everything for agents: <https://agentprime.io/llms.txt>.
