Vulnerability library
Security checkOctober 20, 2026

markdown-it: Quadratic complexity in smartquotes with unmatched closing quotes

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

When typographer: true is enabled, specially crafted Markdown can cause quadratic processing time in the smartquotes rule, potentially leading to denial of service in applications processing untrusted input.

Many opening double quotes followed by unmatched closing single quotes cause repeated scans of the entire opener stack.

Recommendation

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

  • Affected version(s): **< 14.3.2 >= 15.0.0, < 15.0.2**
  • Patched version(s): **14.3.2 15.0.2**

References

Could your website be exposed too?

SmartScanner can check your website for markdown-it: Quadratic complexity in smartquotes with unmatched closing quotes and gives you actionable findings to investigate.

Start a free scan

Related Issues

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