Live threats

All CVEs / Marked Project

CVE-2022-21680Marked Project Marked

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.3%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Jan 14, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-1333
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Marked.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm marked < 4.0.10 4.0.10 npm install marked@4.0.10

Per OSV / GitHub Advisories (GHSA-rrrm-qjm4-v8hf). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
marked_projectmarked< 4.0.10
fedoraprojectfedora36

Official sources

References

Links published by the sources. Open them with care.