Read the docs
TI-2024-16578 Aliases CVE-2024-25124GHSA-fmg4-x8pw-hjhg

Fiber has Insecure CORS Configuration, Allowing Wildcard Origin with Credentials

Priority HIGH 76CWE-346Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-346.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00655 51st percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed fiber (gofiber): 2.52.1github.com/gofiber/fiber/v2 (Go): 2.52.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
gofiberfiberbefore 2.52.12.52.1Patch availableCNA
—github.com/gofiber/fiber/v2 (Go)before 2.52.12.52.1Patch availableGHSA-fmg4-x8pw-hjhg
  • fiber Vendorgofiber Affected before 2.52.1 Fixed in 2.52.1 Patch available CNA
  • github.com/gofiber/fiber/v2 (Go) Vendor— Affected before 2.52.1 Fixed in 2.52.1 Patch available GHSA-fmg4-x8pw-hjhg

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:*before 2.52.1Vulnerablegofiber
  • cpe:2.3:a:gofiber:fiber:*:*:*:*:*:go:*:* Versions before 2.52.1 Vulnerable ·gofiber

Remediation

  • Fix · CNA fiber (gofiber) Fixed in 2.52.1
  • Fix · GHSA-fmg4-x8pw-hjhg github.com/gofiber/fiber/v2 (Go) Fixed in 2.52.1 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-25124
  2. 2026-10-03 Alias added: GHSA-fmg4-x8pw-hjhg
  3. 2026-10-13 EPSS moved to the 50th–90th percentile

References

  • TI-2025-34555 Fiber Susceptible to Crash via `BodyParser` Due to Unvalidated Large Slice Index in Decoder CVSS 4.0HIGH 8.7
  • TI-2025-30446 Fiber panics when fiber.Ctx.BodyParser parses invalid range index CVSS 4.0HIGH 7.7
  • TI-2026-23477 github.com/gofiber/fiber/v3 cache middleware can mix responses across query parameters CVSS 3.1MEDIUM 6.5
  • TI-2026-20922 Fiber has a Denial of Service Vulnerability via Route Parameter Overflow CVSS 4.0MEDIUM 5.5
  • TI-2026-30834 Fiber: XSS in AutoFormat Content Negotiation CVSS 4.0MEDIUM 5.3
  • TI-2026-38670 Fiber: HSTS header never set in helmet middleware due to incorrect protocol check CVSS 3.1MEDIUM 4.8
See all 16 →

Sources