CVE-2015-10005: markdown-it - Inefficient Regular Expression Complexity

markdown-it Updated 02 Oct 2025

Summary

27/12/2022
Yes i
High
7.5

CVE-2015-10005: markdown-it vulnerable to Inefficient Regular Expression Complexity. Affects markdown-it versions < 3.0.0. Fixed in 3.0.0. 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

markdown-it is an npm package that provides a Markdown parser and compiler for JavaScript. It is commonly used to convert Markdown syntax into HTML. The package allows developers to easily incorporate Markdown functionality into their applications. However, versions up to 2.x of markdown-it are vulnerable to an inefficient regular expression complexity issue, which can lead to performance degradation and potential denial-of-service attacks.

Vulnerability Detail

The vulnerability exists in an unknown function within the lib/common/html_re.js file of markdown-it. The issue arises from inefficient regular expressions, which can result in excessive backtracking and high computational complexity. Attackers can exploit this vulnerability by providing specially crafted input, causing the Markdown parser to consume excessive CPU resources and potentially leading to a denial-of-service condition. The vulnerability has been assigned the identifier VDB-216852 and has a CVSS score of 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

How To Fix

Latest published version: 15.0.3 as of 22 Oct 2026

npm install markdown-it@15.0.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.0.0

This is the first release that contains the fix.

npm install markdown-it@3.0.0

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

Workaround

There is no specific workaround mentioned for this vulnerability. The recommended approach is to upgrade to the fixed version of markdown-it (3.0.0 or later).

Conclusion

The markdown-it package up to version 2.x is vulnerable to an inefficient regular expression complexity issue. This can lead to performance degradation and potential denial-of-service attacks. To mitigate this vulnerability, it is recommended to upgrade to version 3.0.0 or later. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for markdown-it →

Share this vulnerability

FAQ

markdown-it is an npm package that provides a Markdown parser and compiler for JavaScript. It allows developers to convert Markdown syntax into HTML.

The vulnerability can result in performance degradation and potential denial-of-service attacks if exploited by providing specially crafted input.

To fix this vulnerability, upgrade the markdown-it package to version 3.0.0 or later.

There is no specific workaround mentioned for this vulnerability. Upgrading to the fixed version is the recommended solution.

Related vulnerabilities

Recent vulnerabilities recorded for markdown-it.

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

Latest published version: 15.0.3 as of 22 Oct 2026

npm install markdown-it@15.0.3

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

3.0.0

This is the first release that contains the fix.

npm install markdown-it@3.0.0

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