Fiber insecurely fallsback in utils.UUIDv4() / utils.UUID() — predictable / zero‑UUID on crypto/rand failure
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/gofiber/fiber/v2Go | < 2.52.11 | 2.52.11 |
Affected products
6- osv-coords5 versionspkg:apk/chainguard/gatuspkg:apk/chainguard/gatus-fipspkg:apk/wolfi/gatuspkg:golang/github.com/gofiber/fiber/v2pkg:rpm/opensuse/govulncheck-vulndb&distro=openSUSE%20Leap%2015.6
< 5.34.0-r3+ 4 more
- (no CPE)range: < 5.34.0-r3
- (no CPE)range: < 5.34.0-r2
- (no CPE)range: < 5.34.0-r3
- (no CPE)range: < 2.52.11
- (no CPE)range: < 0.0.20260226T182644-150000.1.149.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-68rr-p4fp-j59vghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-66630ghsaADVISORY
- github.com/gofiber/fiber/commit/eb874b6f6c5896b968d9b0ab2b56ac7052cb0ee1ghsax_refsource_MISCWEB
- github.com/gofiber/fiber/releases/tag/v2.52.11ghsax_refsource_MISCWEB
- github.com/gofiber/fiber/security/advisories/GHSA-68rr-p4fp-j59vghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.