CVE-2019-5422: Cross-Site Scripting in buttle

buttle Updated 02 Oct 2025

Summary

08/04/2019
No i
High
Not published

CVE-2019-5422: Cross-Site Scripting 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Buttle is an npm package that is susceptible to Cross-Site Scripting (XSS) attacks. This vulnerability exists in all versions of the package. The issue arises from the package's failure to properly sanitize filenames, allowing attackers to execute arbitrary JavaScript code in the victim's browser through files with malicious names.

Vulnerability Detail

The Cross-Site Scripting vulnerability in buttle poses a significant risk to users. Attackers can exploit this vulnerability to inject and execute malicious code in the victim's browser. This can lead to various consequences, including unauthorized access to sensitive information, session hijacking, and the potential for further attacks. The vulnerability is classified as CWE-79.

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 official fix for this vulnerability, a possible workaround is to manually sanitize filenames before using them in the application. This can be achieved by implementing a robust input validation and sanitization mechanism to ensure that filenames do not contain any malicious code.

Conclusion

The Cross-Site Scripting vulnerability in buttle exposes users to the risk of executing arbitrary JavaScript code in their browsers. As there is no available fix at the moment, it is advisable to use an alternative package. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for buttle →

Share this vulnerability

FAQ

The vulnerability allows attackers to execute arbitrary JavaScript code in the victim's browser, potentially leading to unauthorized access, session hijacking, and further attacks.

Yes, all versions of buttle are vulnerable to this Cross-Site Scripting issue.

No, there is currently no fix available for this vulnerability. It is recommended to use an alternative package.

One way to mitigate the risk is to implement input validation and sanitization mechanisms to ensure that filenames are properly sanitized before use.

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