Vulnerability · Published Jan 10, 2022 · Assigned by GitHub_M
CVE-2022-21670Uncontrolled Resource Consumption in markdown-it
Medium 5.3
In plain English
A medium-severity uncontrolled resource consumption in markdown-it from markdown-it. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.4% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)2.4%top 16.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-markdown-it | 10.0.0+dfsg-6 | DEBIAN-CVE-2022-21670 |
| Debian:13 | node-markdown-it | 10.0.0+dfsg-6 | DEBIAN-CVE-2022-21670 |
| Debian:14 | node-markdown-it | 10.0.0+dfsg-6 | DEBIAN-CVE-2022-21670 |
| Ubuntu:22.04:LTS | node-markdown-it | no fix listed | UBUNTU-CVE-2022-21670 |
| Ubuntu:24.04:LTS | node-markdown-it | no fix listed | UBUNTU-CVE-2022-21670 |
| Ubuntu:25.10 | node-markdown-it | no fix listed | UBUNTU-CVE-2022-21670 |
| Ubuntu:26.04:LTS | node-markdown-it | no fix listed | UBUNTU-CVE-2022-21670 |
| Ubuntu:26.10 | node-markdown-it | no fix listed | UBUNTU-CVE-2022-21670 |
| npm | markdown-it | 12.3.2 | GHSA-6vfc-qv3f-vr6c |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| markdown-it | markdown-it | < 12.3.2 |
Weakness: CWE-400 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L