Vulnerability library
Security checkNovember 02, 2026

markdown-it linkify: true has two quadratic paths, so a few hundred KB of markdown blocks the event loop for tens of sec

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

Medium severitynpmmarkdown-it

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Two independent quadratic paths in the linkify: true handling. Both are in markdown-it’s own code rather than in linkify-it, which stays linear on both payloads.

src/rules_core/linkify.ts calls arrayReplaceAt once per linkified text token, and that rebuilds the whole children array each time.

Recommendation

Update the markdown-it package to the latest compatible version. Followings are version details:

  • Affected version(s): **< 14.3.1 = 15.0.0**
  • Patched version(s): **14.3.1 15.0.1**

References

Could your website be exposed too?

SmartScanner can check your website for markdown-it linkify: true has two quadratic paths, so a few hundred KB of markdown blocks the event loop for tens of sec and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated November 02, 2026