CVE-2018-3766: Path Traversal in buttle

buttle Updated 02 Oct 2025

Summary

18/09/2018
No i
High
7.5

CVE-2018-3766: Path Traversal in buttle. Affects buttle versions < 0.2.0. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Buttle is an npm package that provides functionality for file fetching and server access. It is vulnerable to a Path Traversal attack due to insufficient input sanitization. Attackers can exploit this vulnerability by using relative paths to access server files.

Vulnerability Detail

The Path Traversal vulnerability in buttle allows attackers to bypass file access restrictions and retrieve sensitive server files. This occurs because the application fails to properly sanitize user input, allowing attackers to traverse the file system using relative paths. The impact of this vulnerability can be severe, as it enables unauthorized access to sensitive information and potentially exposes the entire server file system.

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

As there is no fix available, a possible workaround is to implement input validation and sanitization manually before processing user input. This can help mitigate the risk of path traversal attacks. Here's an example of how to sanitize user input in Node.js:

const path = require('path');

function sanitizePath(userInput) {
  const sanitizedPath = path.normalize(userInput);
  return sanitizedPath;
}

By using the path.normalize function, the user input is converted to a canonicalized path, removing any relative path components and ensuring that only valid paths are processed.

Conclusion

The Path Traversal vulnerability in buttle exposes server files to unauthorized access. Currently, there is no fix available, so it is recommended to use an alternative module and implement input validation and sanitization to mitigate the risk. Stay updated with the official repository for any future patches or fixes. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for buttle →

Share this vulnerability

FAQ

The impact of this vulnerability can be severe, as it allows attackers to access sensitive server files and potentially gain unauthorized access to the entire file system.

Currently, there is no fix available for this vulnerability. It is recommended to use an alternative module until a fix is released.

To mitigate the risk of this vulnerability, you can implement input validation and sanitization to ensure that user input is properly sanitized before processing. Additionally, consider using an alternative module that does not have this vulnerability.

While there may not be specific known exploits documented, the vulnerability itself allows attackers to perform path traversal attacks, which can lead to unauthorized access and exposure of sensitive server files.

Keep an eye on the official repository for the buttle module for any updates or patches that address this vulnerability. It is recommended to regularly check for updates and apply them as soon as they become available.

Related vulnerabilities

Recent vulnerabilities recorded for buttle.

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