Skip to content

CVE-2022-21680 Cubic catastrophic backtracking (ReDoS) in marked

HighCVSS 7.5 EPSS 3.0%
Published
Updated
Exploit status
No public exploit known

Description

Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression block.def may cause catastrophic backtracking against some strings and lead to a regular expression denial of service (ReDoS). Anyone who runs untrusted markdown through a vulnerable version of marked and does not use a worker with a time limit may be affected. This issue is patched in version 4.0.10. As a workaround, avoid running untrusted markdown through marked or run marked on a worker thread and set a reasonable time limit to prevent draining resources.

Affected products

ProductAffected versionsFixed in
npm marked(npm) < 4.0.10 4.0.10
markedjs marked = < 4.0.10 No fix listed
ubuntu/node-marked(Ubuntu:22.04) All versions No fix listed
marked project marked < 4.0.10 4.0.10
fedoraproject fedora = 36 No fix listed
ubuntu/node-marked(Ubuntu:24.04) All versions No fix listed
ubuntu/node-marked(Ubuntu:26.04) All versions No fix listed
ubuntu/node-marked(Ubuntu:26.10) All versions No fix listed
debian/node-marked(Debian:12) < 4.0.12+ds+~4.0.1-1 4.0.12+ds+~4.0.1-1
debian/node-marked(Debian:14) < 4.0.12+ds+~4.0.1-1 4.0.12+ds+~4.0.1-1
debian/node-marked(Debian:13) < 4.0.12+ds+~4.0.1-1 4.0.12+ds+~4.0.1-1

References