Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `block.def` may…
Historical advisory recorded 24 Oct 2026 19:17:43 UTC. Read the latest advisory.
nvd · CVE-2022-21680
PublishedMarked 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2022-21680
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Modified
Weakness classifications: CWE-400 · CWE-1333
Original publisher date fields
published: 2022-01-14T17:15:13.210
lastModified: 2026-06-17T04:26:44.973
2 source CPE criteria · context only
- cpe:2.3:a:marked_project:marked:*:*:*:*:*:node.js:*:*
- cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON