Vulnerability library
Security checkOctober 20, 2026

markdown-it: Quadratic-time denial of service in inline HTML parsing with html enabled

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

Low severitynpmmarkdown-it

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

With html: true, markdown-it takes quadratic time to parse repeated unterminated HTML constructs inside a paragraph. This affects HTML comments (<!--), processing instructions (<?), declarations (<!A), and CDATA sections (<![CDATA[).

An attacker-controlled input of a few hundred kilobytes can block the Node.

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.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 denial of service in inline HTML parsing with html enabled and gives you actionable findings to investigate.

Start a free scan

Related Issues

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