markdown-it
Affected
- introduced
0, fixed12.3.2(semver)
Fixed versions
12.3.2
Fix
- Fixed version
12.3.2npm install [email protected]
Advisory
Also known as: CVE-2022-21670
Uncontrolled Resource Consumption in markdown-it
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
Medium Basis: The source's own band: MODERATE
0, fixed 12.3.2 (semver)12.3.2
12.3.2npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0