VDB

CVE-2022-21681

CVE-2022-21681 PUBLISHED CVSS 7.5 HIGH

Exponential catastrophic backtracking (ReDoS) in marked

Reported by github_m · Published January 14, 2022

marked is fixed in 4.0.10 (npm)

Marked is a markdown parser and compiler. Prior to version 4.0.10, the regular expression `inline.reflinkSearch` may cause catastrophic backtracking against some strings and lead to a denial of service (DoS). 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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
markednpm4.0.10
arangodb-3.12Chainguard3.12.9.4-r14
markedmarked_project4.0.10

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
markedjsmarked< 4.0.10
chainguardarangodb-3.120
markedjsmarked0
NuGetmarked0
npmmarked0

Timeline

  • Jan 14, 2022 CVE Published
  • Feb 8, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 21, 2024 CVE Updated
  • Mar 9, 2026 Security Advisory
  • Jul 7, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-21681
vulnetix vdb fixes CVE-2022-21681

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-21681/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›