7.5

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

Modified
AliasesUBUNTU-CVE-2022-21680DEBIAN-CVE-2022-21680GHSA-rrrm-qjm4-v8hf
Published 14-01-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-21680 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in fedoraproject fedora. EPSS estimates a 2.98% chance of exploitation in the next 30 days, higher than 87.7% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
2.98%
0%100%
Low · +0.21 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 14-01-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

7 scores · 6 sources · 2 versions

EPSS trend

Probability

2.98%

Chance of exploitation in the next 30 days

Percentile

88%

Versus all other CVEs

30-day change

Increase +0.21 pp

From 2.77% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Marked

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Chainguard2 products
  • arangodb-3.11All versions (No fix recorded)
  • arangodb-3.12< 3.12.9.4-r14
Debian1 product
  • node-marked< 4.0.12+ds+~4.0.1-1
Fedoraproject1 product
Marked_project1 product
Markedjs1 product
Npm1 product
  • marked< 4.0.10
Ubuntu1 product
  • node-markedAll versions (No fix recorded)

7 vendors · 8 products

References

11 links
Show all 11 references