Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) Affecting github.com/gofiber/fiber/utils package, versions <2.52.11


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.47% (37th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOFIBERFIBERUTILS-15252997
  • published10 Feb 2026
  • disclosed9 Feb 2026
  • creditJason McNeil

Introduced: 9 Feb 2026

CVE-2025-66630  (opens in a new tab)
CWE-252  (opens in a new tab)
CWE-331  (opens in a new tab)
CWE-338  (opens in a new tab)

How to fix?

Upgrade github.com/gofiber/fiber/utils to version 2.52.11 or higher.

Overview

Affected versions of this package are vulnerable to Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) due to the UUIDv4 and UUID functions silently returning predictable values, such as the zero UUID, when the cryptographic random number generator fails. An attacker can compromise the integrity and confidentiality of security-sensitive identifiers by triggering or exploiting failures in the system's entropy source, leading to predictable session IDs, CSRF tokens, authentication tokens, and widespread identifier collisions across the application.

Applications running on Go 1.24 or above are not vulnerable because Rand() panics rather than falling back to predictable UUID assignment.

Note: This vulnerability is inherited from the gofiber/utils package from which it is vendored. The vulnerability on that package is described in CVE-2025-66565.

CVSS Base Scores

version 4.0
version 3.1