Memory Allocation with Excessive Size Value Affecting github.com/gofiber/fiber/v3 package, versions <3.1.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.45% (40th 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-GITHUBCOMGOFIBERFIBERV3-15346145
  • published3 Mar 2026
  • disclosed24 Feb 2026
  • credittuliperis FS

Introduced: 24 Feb 2026

CVE-2026-25899  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

Upgrade github.com/gofiber/fiber/v3 to version 3.1.0 or higher.

Overview

github.com/gofiber/fiber/v3 is an Express inspired web framework written in Go.

Affected versions of this package are vulnerable to Memory Allocation with Excessive Size Value via the parseAndClearFlashMessages function. An attacker can cause excessive memory allocation by sending a specially crafted fiber_flash cookie containing a maliciously encoded msgpack array header. This can result in resource exhaustion and service disruption without requiring authentication.

CVSS Base Scores

version 4.0
version 3.1