cbcvebase.
CVE-2022-21680
published 2022-01-14

CVE-2022-21680: 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…

PriorityP341high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
2.83%
85.0th percentile
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

5 ranges
VendorProductVersion rangeFixed in
debiannode-marked< node-marked 4.0.12+ds+~4.0.1-1 (bookworm)node-marked 4.0.12+ds+~4.0.1-1 (bookworm)
fedoraprojectfedora
marked_projectmarked< 4.0.104.0.10
marked_projectmarked>= 0 < 4.0.104.0.10
markedjsmarked< 4.0.104.0.10

CVSS provenance

nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_debian7.5HIGH
vendor_redhat7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.