CVE-2026-25891: Fiber Package Arbitrary File Read Vulnerability on Windows

github.com/gofiber/fiber/v3 Updated 24 Feb 2026

Summary

24/02/2026
Yes i
High
8.7

CVE-2026-25891: Fiber has an Arbitrary File Read in Static Middleware on Windows. Affects github.com/gofiber/fiber/v3 versions < 3.1.0. Fixed in 3.1.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Fiber is a web framework for Go that is designed to be fast and efficient, providing developers with a simple API for building web applications. It supports middleware, routing, and various features that enhance web server performance. However, a vulnerability in its static middleware allows for arbitrary file reading on Windows systems, which can lead to serious security issues.

Vulnerability Detail

A Path Traversal vulnerability (CWE-22) exists in Fiber's static middleware, allowing remote attackers to bypass sanitization and read arbitrary files on the server's file system on Windows. The vulnerability arises from improper handling of backslashes and URL decoding in the sanitizePath function. Attackers can exploit this flaw to traverse the directory tree and access sensitive files, potentially leading to further compromises.

How To Fix

Latest published version: v3.6.1 as of 22 Oct 2026

go get github.com/gofiber/fiber/v3@v3.6.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.1.0

This is the first release that contains the fix.

go get github.com/gofiber/fiber/v3@v3.1.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can avoid using the static middleware on Windows systems until the package is updated. Additionally, ensure that sensitive files are not accessible through the web server's document root.

Conclusion

The CVE-2026-25891 vulnerability in the Fiber package poses a significant risk to applications running on Windows due to its ability to allow arbitrary file reading. Users should promptly update to the patched version to mitigate this risk and ensure the security of their applications.

See every vulnerability recorded for github.com/gofiber/fiber/v3 →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 8.7, indicating a high severity level.

Fiber versions from 3.0.0 and earlier are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Successful exploitation can allow attackers to read sensitive files, such as configuration files and source code, which may lead to further security breaches.

Yes, a patch is available in Fiber version 3.1.0 and later. Users are strongly encouraged to update to this version.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/gofiber/fiber/v3.

How To Fix

Latest published version: v3.6.1 as of 22 Oct 2026

go get github.com/gofiber/fiber/v3@v3.6.1

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.1.0

This is the first release that contains the fix.

go get github.com/gofiber/fiber/v3@v3.1.0

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback