GHSA-6vfc-qv3f-vr6cMediumCVSS 5.3

Uncontrolled Resource Consumption in markdown-it

Published
January 12, 2022
Last Modified
July 24, 2023

🔗 CVE IDs covered (1)

📋 Description

Impact

Special patterns with length > 50K chars can slow down parser significantly.

const md = require('markdown-it')();

md.render(`x ${' '.repeat(150000)} x  \nx`);

Patches

Upgrade to v12.3.2+

Workarounds

No.

References

Fix + test sample: https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101

🎯 Affected products1

  • npm/markdown-it:< 12.3.2

🔗 References (4)