CVE-2026-2327: markdown-it · Regular Expression Denial of Service (ReDoS)
Affects markdown-itSource CVE Database V5
Not known to be exploited · CVSS 6.9 Medium : upgrade to 14.1.1 when convenient.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 14.1.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:PExploitation evidence
Disclosed: evidence found.
CVE published 12 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Upgrade markdown-it to 14.1.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| markdown-it | Affected
| Fixed in
|
AI-suggested
To mitigate CVE-2026-2327, organizations should upgrade markdown-it to a version later than 14.1.1 where the vulnerable regex has been corrected. If upgrading is not immediately feasible, applying input validation to restrict the length and content of markdown input can reduce the risk of triggering the ReDoS condition. Implementing rate limiting and request throttling on endpoints that process markdown content can help mitigate the impact of potential attacks. Additionally, monitoring application performance and logs for unusual CPU spikes or slowdowns during markdown processing can provide early detection of exploitation attempts. Developers should review and test any custom regex patterns used in markdown processing to avoid similar ReDoS vulnerabilities. Finally, incorporating security testing tools that detect ReDoS patterns during development can prevent future occurrences.
Description
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
- security.snyk.io/vuln/SNYK-JS-MARKDOWNIT-10666750 (opens in a new tab)
- gist.github.com/ltduc147/c9abecae1b291ede4f692f2ab988c917 (opens in a new tab)
- github.com/markdown-it/markdown-it/blob/14.1.0/lib/rules_inline/linkify.mjs%23L33 (opens in a new tab)
- github.com/markdown-it/markdown-it/commit/4b4bbcae5e0990a5b172378e507b33a59012ed26 (opens in a new tab)