CVE-2025-66630 Fiber insecurely fallsback in utils.UUIDv4() / utils.UUID() — predictable / zero‑UUID on crypto/rand failure

Critical 9.2 Published Updated

Fiber generates predictable UUIDs when crypto/rand fails, potentially allowing attackers to bypass session, CSRF, or rate-limiting protections.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-66630?

CVE-2025-66630 is a critical vulnerability in gofiber fiber, published on 9 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Fiber is an Express inspired web framework written in Go. Before 2.52.11, on Go versions prior to 1.24, the underlying crypto/rand implementation can return an error if secure randomness cannot be obtained. Because no error is returned by the Fiber v2 UUID functions, application code may unknowingly rely on predictable, repeated, or low-entropy identifiers in security-critical pathways. This is especially impactful because many Fiber v2 middleware components (session middleware, CSRF, rate limiting, request-ID generation, etc.) default to using utils.UUIDv4(). This vulnerability is fixed in 2.52.11.

Weakness: CWE-338

Which versions are affected by CVE-2025-66630?

4 open source packages ship an affected version, including github.com/gofiber/fiber/v2 and github.com/gofiber/fiber. It affects 1 product.

PackageAffectedFixed in
github.com/gofiber/fiber/v2 GoAll versions2.52.11
github.com/gofiber/fiber/v2 GoAll versions2.52.11
github.com/gofiber/fiber/v2 GoAll versions2.52.11
github.com/gofiber/fiber GoAll versionsNone

Products include Gofiber Fiber.

How do I fix CVE-2025-66630?

Upgrade github.com/gofiber/fiber/v2 to 2.52.11 or later.

Is CVE-2025-66630 being exploited?

There is no known exploitation of CVE-2025-66630 in the wild and no public exploit code.

Sources

Also known as GHSA-68rr-p4fp-j59v, GO-2026-4471.

Is CVE-2025-66630 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free