CVE-2022-21670 json
Uncontrolled Resource Consumption in markdown-it
published 4y ago modified 4mo ago also GHSA-6vfc-qv3f-vr6c , EUVD-2022-0488
- cvss
- 5.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.4%
- EPSS 2.4% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm markdown-it 12.3.2
- node-markdown-it Debian 14, Debian 13, Debian 12 10.0.0+dfsg-6
debian advisories DEBIAN-CVE-2022-21670
Is CVE-2022-21670 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- last yr.
Exploit prediction
2.36% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- github.com https://github.com/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | markdown-it | <12.3.2 |
12.3.2 |
Affected products
- markdown-it markdown-it
Classification
References
-
github.com
/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986101
web, patch, third-party-advisory
-
github.com
/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6c
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-21670
advisory
-
github.com
/markdown-it/markdown-it
package
Sources
- CVE List CVE-2022-21670
- GitHub Advisory GHSA-6vfc-qv3f-vr6c
- NVD CVE-2022-21670
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.