Vulnerability library
Security checkOctober 20, 2026

markdown-it: Quadratic-time rendering of a single multi-line link reference definition with default options (regression

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmmarkdown-it

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated October 20, 2026