Severity
7.5HIGHNVD
EPSS
0.7%
top 27.78%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedJan 14

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

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitability: 3.9 | Impact: 3.6

Affected Packages4 packages

CVEListV5markedjs/marked< 4.0.10
debiandebian/node-marked< node-marked 4.0.12+ds+~4.0.1-1 (bookworm)
NVDmarked_project/marked< 4.0.10
npmmarked_project/marked< 4.0.10

Also affects: Fedora 36

Patches

🔴Vulnerability Details

3
OSV
Inefficient Regular Expression Complexity in marked2022-01-14
GHSA
Inefficient Regular Expression Complexity in marked2022-01-14
OSV
CVE-2022-21680: Marked is a markdown parser and compiler2022-01-14

📋Vendor Advisories

2
Red Hat
marked: regular expression block.def may lead Denial of Service2022-01-14
Debian
CVE-2022-21680: node-marked - Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular e...2022