Cross-Site Scripting Vulnerability in buttle

buttle Updated 02 Oct 2025

Summary

02/09/2020
MODERATE
No i
Moderate
Not published

GHSA-pqpp-2363-649v: Cross-Site Scripting in buttle. Affected versions are not published. 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 a rendering engine for processing markdown files. It is used to convert markdown files into HTML output. However, all versions of buttle are vulnerable to Cross-Site Scripting (XSS) attacks. The vulnerability arises from a misconfiguration in the rendering engine, which fails to properly sanitize the HTML output. This allows attackers to inject and execute arbitrary JavaScript code when processing malicious markdown files.

Vulnerability Detail

The Cross-Site Scripting vulnerability in buttle exposes users to potential attacks where malicious actors can inject and execute arbitrary JavaScript code. This can lead to various security risks, such as stealing sensitive user information, hijacking user sessions, or performing actions on behalf of the user without their consent. The vulnerability is rated as moderate in severity and is identified with the Common Weakness Enumeration (CWE) ID 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 fix available, a possible workaround is to manually sanitize the HTML output generated by buttle. This can be done by using a separate library or function to sanitize the HTML code before rendering it in the browser. Here is an example of how to use the DOMPurify library to sanitize the HTML output:

const DOMPurify = require('dompurify');

const markdown = '...'; // Markdown content
const html = buttle.render(markdown);
const sanitizedHtml = DOMPurify.sanitize(html);

// Render sanitizedHtml in the browser

By using DOMPurify or a similar library, you can ensure that any potentially malicious JavaScript code is removed from the HTML output.

Conclusion

The Cross-Site Scripting vulnerability in buttle exposes users to potential security risks. Currently, there is no fix available, so it is advisable to consider using an alternative module. Stay updated with official sources for any future fixes or patches. For further support on vulnerability remediation, contact DevNack.com.

See every vulnerability recorded for buttle →

Share this vulnerability

FAQ

buttle is an npm package that provides a rendering engine for processing markdown files. It converts markdown files into HTML output.

Cross-Site Scripting (XSS) is a type of security vulnerability where attackers can inject and execute malicious scripts into web pages viewed by other users.

The potential risks of this vulnerability include stealing sensitive user information, hijacking user sessions, and performing unauthorized actions on behalf of the user.

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

One way to mitigate the risk is to manually sanitize the HTML output generated by buttle using a library like DOMPurify before rendering it in the browser.

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