SCA: security update for github.com/gofiber/fiber/v2 (GHSA-fmg4-x8pw-hjhg)

critical Tenable Self-Hosted Container Security Plugin ID 414587

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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. (CVE-2024-25124)

Solution

Update the github.com/gofiber/fiber/v2 library and its related packages to version 2.52.1 or later.

See Also

https://github.com/advisories/GHSA-fmg4-x8pw-hjhg

Plugin Details

Severity: Critical

ID: 414587

Version: Revision 1.8

Type: Local

Family: SCA Checks

Published: 1/23/2025

Updated: 7/2/2026

Supported Sensors: Tenable Cloud Security, Tenable Self-Hosted Container Security

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.88

Vendor

Vendor Severity: Critical

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-25124

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2/22/2024

Vulnerability Publication Date: 2/21/2024

Reference Information

CVE: CVE-2024-25124

cwe: CWE-346