CVE-2019-9844: Cross-Site Scripting in simple-markdown

simple-markdown Updated 02 Oct 2025

Summary

09/04/2019
Yes i
Moderate
6.1

CVE-2019-9844: Cross-Site Scripting in simple-markdown. Affects simple-markdown versions < 0.4.4. Fixed in 0.4.4. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

simple-markdown is an npm package used for rendering Markdown syntax into HTML. It provides a simple and lightweight solution for converting Markdown text into formatted HTML content. However, versions prior to 0.4.4 are vulnerable to Cross-Site Scripting (XSS) attacks. This vulnerability arises due to insufficient input sanitization, allowing the package to render output that may contain malicious JavaScript. Attackers can exploit this vulnerability by injecting links with data or VBScript URIs and a base64-encoded payload, potentially leading to the execution of arbitrary code on the client-side.

Vulnerability Detail

The vulnerability in simple-markdown allows for the injection of malicious JavaScript code through specially crafted input. This can occur when the package fails to properly sanitize user-supplied data, enabling an attacker to execute arbitrary code within the context of a user's browser. The impact of this vulnerability can range from stealing sensitive information, such as login credentials or session tokens, to performing unauthorized actions on behalf of the user. The vulnerability has a CVSS score of 6.1, indicating a moderate severity level.

How To Fix

Minimum fixed version

0.4.4

This is the first release that contains the fix.

npm install simple-markdown@0.4.4

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

Workaround

There is no known workaround for this vulnerability. It is crucial to update the simple-markdown package to the latest secure version to mitigate the risk of XSS attacks.

Conclusion

In conclusion, the simple-markdown package prior to version 0.4.4 is vulnerable to Cross-Site Scripting (XSS) attacks. It is crucial to update to version 0.4.4 or later to mitigate the risk of XSS vulnerabilities. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for simple-markdown →

Share this vulnerability

FAQ

Cross-Site Scripting (XSS) is a type of security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users. This can lead to the execution of arbitrary code in the victim's browser, compromising their data and potentially enabling further attacks.

An attacker can exploit this vulnerability by crafting malicious links containing data or VBScript URIs and a base64-encoded payload. When a user interacts with these links, the malicious JavaScript code is executed within their browser, allowing the attacker to perform various malicious actions.

The consequences of this vulnerability can vary depending on the attacker's intentions. They may include stealing sensitive information, such as login credentials or session tokens, manipulating user data, or performing unauthorized actions on behalf of the user.

Yes, this vulnerability has been fixed in version 0.4.4 of the simple-markdown package. It is crucial to update to this version or a later one to ensure the security of your application.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using only the package-lock.json file, without requiring access to the code or installation.

Related vulnerabilities

Recent vulnerabilities recorded for simple-markdown.

How To Fix

Minimum fixed version

0.4.4

This is the first release that contains the fix.

npm install simple-markdown@0.4.4

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