Description
A quadratic time complexity vulnerability exists in markdown-it’s smartquotes rule (enabled via the typographer: true option). An attacker can craft a markdown input consisting of consecutive quotation marks that causes the parser to consume excessive CPU time, leading to denial of service.
Recommendation
Update the markdown-it package to the latest compatible version. Followings are version details:
- Affected version(s): <= 14.1.1
- Patched version(s): 14.2.0
References
Could your website be exposed too?
SmartScanner can check your website for markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations and gives you actionable findings to investigate.
Start a free scanRelated Issues
- markdown-it: Quadratic complexity in smartquotes with unmatched closing quotes - CVE-2026-111759
- linkify-it: Quadratic-complexity DoS via the `mailto:` validator scan-loop on attacker text - CVE-2026-59887
- markdown-it: Quadratic-time denial of service in inline HTML parsing with html enabled - CVE-2026-111766
- markdown-it: Quadratic-time rendering of a single multi-line link reference definition with default options (regression - CVE-2026-111758


