CVE-2022-21670
mediumpriority · track · 22EPSS 0.023 · 83 %ileEUUSEPSS · scored 2026-10-27
markdown-it is a Markdown parser. Prior to version 1.3.2, special patterns with length greater than 50 thousand characterss could slow down the parser significantly. Users should upgrade to version 12.3.2 to receive a patch. There are no known workarounds aside from upgrading.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
- markdown-it project markdown-it≤ 12.3.1nvdUScpe:2.3:a:markdown-it_project:markdown-it:*:*:*:*:*:*:*:*
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-6vfc-qv3f-vr6cUncontrolled Resource Consumption in markdown-it2022-01-12ghsa · osvUS
### Impact Special patterns with length > 50K chars can slow down parser significantly. ```js 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
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101cnnvd
- https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6ccnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2022-21670cnnvd
- https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101enisa_euvd
- https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6cenisa_euvd
- https://github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101PatchThird Party Advisorynvd
- https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6cExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan