ADVISORIES

Vulnerability

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 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.

8 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • CGA-84m5-q2v6-8v58
    CVE-2022-21680 Chainguard Updated 5 November 2026
  • CGA-929p-5w7w-w759
    CVE-2022-21680 Chainguard Updated 5 November 2026
  • CGA-hggr-jg97-m47m
    CVE-2022-21680 Chainguard Updated 5 November 2026
  • CGA-pmx6-pw59-jp7j
    CVE-2022-21680 Chainguard Updated 5 November 2026
  • DEBIAN-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 and lead to a regular expression denial of service (ReDoS).…

    CVE-2022-21680 Debian Updated 20 November 2026
  • GHSA-rrrm-qjm4-v8hf

    Inefficient Regular Expression Complexity in marked

    High CVE-2022-21680 npm Updated 10 September 2026
  • RHVEX-CVE-2022-21680

    marked: regular expression block.def may lead Denial of Service

    Moderate CVE-2022-21680 Red Hat Updated 23 November 2026
  • UBUNTU-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 and lead to a regular expression denial of service (ReDoS).…

    CVE-2022-21680 Ubuntu Updated 17 October 2026

References