CVE-2026-2327: markdown-it is has a Regular Expression Denial of Service (ReDoS)
Versions of the package markdown-it from 13.0.0 and before 14.1.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the use of the regex /\+$/ in the linkify function. An attacker can supply a long sequence of characters followed by a non-matching character, which triggers excessive backtracking and may lead to a denial-of-service condition.
Published Feb 12, 2026 · Updated Feb 13, 2026
Affected packages
markdown-it
- Ecosystem
- npm
- Affected
- >= 13.0.0, < 14.1.1
- Fixed in
- 14.1.1
- Check
npm ls markdown-it
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Versions of the package markdown-it from 13.0.0 and before 14.1.1 are vulnerable to Regular Expression Denial of Service (ReDoS) due to the use of the regex /\*+$/ in the linkify function. An attacker can supply a long sequence of * characters followed by a non-matching character, which triggers excessive backtracking and may lead to a denial-of-service condition.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-2327
- https://github.com/markdown-it/markdown-it/commit/4b4bbcae5e0990a5b172378e507b33a59012ed26
- https://gist.github.com/ltduc147/c9abecae1b291ede4f692f2ab988c917
- https://security.snyk.io/vuln/SNYK-JS-MARKDOWNIT-10666750
- https://github.com/markdown-it/markdown-it/blob/14.1.0/lib/rules_inline/linkify.mjs#L33
- https://github.com/advisories/GHSA-38c4-r59v-3vqw
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-111758
markdown-it: Quadratic-time rendering of a single multi-line link reference definition with default options (regression since 14.0)
high7.5Oct 20, 2026CVE-2026-111759
markdown-it: Quadratic complexity in smartquotes with unmatched closing quotes
high7.5Oct 20, 2026CVE-2026-111766
markdown-it: Quadratic-time denial of service in inline HTML parsing with html enabled
low3.7Oct 20, 2026GHSA-253c-mchw-3w2r
markdown-it linkify: true has two quadratic paths, so a few hundred KB of markdown blocks the event loop for tens of seconds
medium6.3Sep 29, 2026CVE-2026-48988
markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations
medium5.3Jun 15, 2026
