CVE-2025-8021: files-bucket-server Directory Traversal Vulnerability

files-bucket-server Updated 02 Oct 2025

Summary

23/07/2025
No i
High
7.5

CVE-2025-8021: files-bucket-server vulnerable to Directory Traversal. Affects files-bucket-server versions < 1.2.6. No fix is published. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The 'files-bucket-server' package is an npm module designed to facilitate file storage and retrieval in a server environment. It allows users to upload and manage files efficiently. However, due to its design, it has been found to be vulnerable to directory traversal attacks, which can lead to unauthorized access to sensitive files on the server.

Vulnerability Detail

The vulnerability arises from improper validation of user input, allowing attackers to manipulate file paths and access files outside the intended directory. This can lead to exposure of sensitive information, including configuration files and user data. The severity of this vulnerability is classified as high, with a CVSS score of 7.5, indicating a significant risk to affected systems.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If you cannot update the package immediately, consider implementing input validation to sanitize user inputs and restrict file access to only the intended directories. This can be done by checking the file paths against a whitelist of allowed directories before processing any file requests.

Conclusion

The 'files-bucket-server' package has a critical directory traversal vulnerability (CVE-2025-8021) that can expose sensitive files to attackers. It is essential to update to the patched version (1.2.7 or later) to mitigate this risk. Implementing input validation can serve as a temporary workaround. Regular monitoring using tools like Vulert can help maintain the security of your application.

See every vulnerability recorded for files-bucket-server →

Share this vulnerability

FAQ

A directory traversal vulnerability allows an attacker to access files and directories that are stored outside the intended directory, potentially exposing sensitive information.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By checking your package-lock.json file, you can determine if your application is affected by this vulnerability.

The risks include unauthorized access to sensitive files, potential data breaches, and exposure of configuration files that could lead to further exploitation of the system.

Yes, implementing strict input validation and sanitization can help mitigate the risk until you can apply the necessary updates.

More information can be found in the official advisory on GitHub or by using the Vulert playground to check for vulnerabilities in your application.

Related vulnerabilities

Recent vulnerabilities recorded for files-bucket-server.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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