---
title: "GHSA-j5p7-jf4q-742q: markdown-it vulnerable to Inefficient Regular Expression Complexity"
description: "High severity. markdown-it vulnerable to Inefficient Regular Expression Complexity. Affects markdown-it; fixed in 3.0.0."
url: https://inlinr.com/advisories/GHSA-j5p7-jf4q-742q
lang: en
---

[Packages](https://inlinr.com/packages) / [markdown-it](https://inlinr.com/packages/markdown-it) / [Security](https://inlinr.com/packages/markdown-it/security)

High Vulnerability GHSA-j5p7-jf4q-742q CVE-2015-10005 Published 27 Dec 2022

# markdown-it vulnerable to Inefficient Regular Expression Complexity

Your version 

Affected releases · [markdown-it](https://inlinr.com/packages/markdown-it)

- 2.x 2.0.0 – 2.2.1 No fix on this line yet

2.x has no fix yet; the newest fixed line:

```
npm install markdown-it@3.0.0
```

Every release on a timeline

15.x 

1. Not affected

15.0.0 – 15.0.3  
4 releases, latest

2.x 

1. Affected

2.0.0 – 2.2.1  
7 releases

89 stable releases of markdown-it, oldest to newest, one row per major.

## What happens

A vulnerability was found in markdown-it up to 2.x. It has been classified as problematic. Affected is an unknown function of the file `lib/common/html_re.js`. The manipulation leads to inefficient regular expression complexity. Upgrading to version 3.0.0 is able to address this issue. The name of the patch is [89c8620](https://github.com/markdown-it/markdown-it/commit/89c8620157d6e38f9872811620d25138fc9d1b0d). It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-216852.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: high

CVSS:3.1/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:N/​I:N/​A:H

## References

- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2015-10005 "https://nvd.nist.gov/vuln/detail/CVE-2015-10005")  
nvd.nist.gov/vuln/detail/CVE-2015-10005
- [Fix commit](https://github.com/markdown-it/markdown-it/commit/89c8620157d6e38f9872811620d25138fc9d1b0d "https://github.com/markdown-it/markdown-it/commit/89c8620157d6e38f9872811620d25138fc9d1b0d")  
89c8620
- [Package](https://github.com/markdown-it/markdown-it "https://github.com/markdown-it/markdown-it")  
github.com/markdown-it/markdown-it
- [Reference](https://github.com/markdown-it/markdown-it/releases/tag/3.0.0 "https://github.com/markdown-it/markdown-it/releases/tag/3.0.0")  
github.com/markdown-it/markdown-it/releases/tag…
- [Reference](https://vuldb.com/?ctiid.216852 "https://vuldb.com/?ctiid.216852")  
vuldb.com
- [Reference](https://vuldb.com/?id.216852 "https://vuldb.com/?id.216852")  
vuldb.com

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
