Description
A link reference definition whose label or title is never closed is O(n²) in markdown-it 15.0.2 with default options. Continuation lines are pulled lazily with str += lineContent in src/rules_block/reference.
Recommendation
Update the markdown-it package to the latest compatible version. Followings are version details:
Affected version(s): **>= 15.0.0, < 15.0.3 >= 14.1.0, < 14.3.3** Patched version(s): **15.0.3 14.3.3**
References
Could your website be exposed too?
SmartScanner can check your website for markdown-it: Quadratic-time rendering of a single multi-line link reference definition with default options (regression and gives you actionable findings to investigate.
Start a free scanRelated Issues
- markdown-it: Quadratic-time denial of service in inline HTML parsing with html enabled - CVE-2026-111766
- markdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operations - CVE-2026-48988
- markdown-it: Quadratic complexity in smartquotes with unmatched closing quotes - CVE-2026-111759
- [Eclipse Theia] Data Exfiltration via Markdown Image Rendering in AI Chat - @theia/ai-ide - CVE-2026-22551


