Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/gofiber/fiber/v3
  4. ›
  5. CVE-2026-25891

CVE-2026-25891: Fiber has an Arbitrary File Read in Static Middleware on Windows

February 24, 2026 (updated February 27, 2026)

Description A Path Traversal (CWE-22) vulnerability in Fiber allows a remote attacker to bypass the static middleware sanitizer and read arbitrary files on the server file system on Windows. This affects Fiber v3 through version 3.0.0. This has been patched in Fiber v3 version 3.1.0.

References

  • github.com/advisories/GHSA-m3c2-496v-cw3v
  • github.com/gofiber/fiber
  • github.com/gofiber/fiber/commit/59133702301c2ab7b776dd123b474cbd995f2c86
  • github.com/gofiber/fiber/pull/4064
  • github.com/gofiber/fiber/security/advisories/GHSA-m3c2-496v-cw3v
  • nvd.nist.gov/vuln/detail/CVE-2026-25891
  • pkg.go.dev/vuln/GO-2026-4540

Code Behaviors & Features

Detect and mitigate CVE-2026-25891 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 3.1.0

Fixed versions

  • 3.1.0

Solution

Upgrade to version 3.1.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/gofiber/fiber/v3/CVE-2026-25891.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:17:33 +0000.