Resource exhaustion in Markdown-It
CVE-2022-21670
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.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.024, 84.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Markdown-It — versions < 12.3.2
- Markdown-It Project
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (20142995/nuclei-templates, ARPSyndicate/cvemon, DavidAnson/markdownlint). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/markdown-it/markdown-it/security/advisories/GHSA-6vfc-qv3f-vr6c (Exploit, Third Party Advisory)
- github.com/markdown-it/markdown-it/commit/ffc49ab46b5b751cd2be0aabb146f2ef84986… (Patch, Third Party Advisory)