SecurityContext

CVE-2022-21681: Marked - Regular Expression Denial of Service

  • Cve: CVE-2022-21681
  • Name: Marked - Regular Expression Denial of Service
  • Description: 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.
  • Impact: Attackers can cause denial of service by triggering excessive backtracking, potentially draining server resources.
  • Remediation: Update to version 4.0.10 or later.
  • Vulnerability type: misconfiguration
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.02893
  • Epss percentile: 0.87161
  • Assignee: [email protected]
  • Published at: 2022-01-14T17:15:13Z
  • Age in days: 1775
  • Modified at: 2026-06-17T04:26:45Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-21681
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-400Uncontrolled Resource Consumption
CWE-1333Inefficient Regular Expression Complexity

Public exploits

UrlSourceAdded date
https://github.com/markedjs/marked/security/advisories/GHSA-5v2h-r2cx-5xgjnvd2022-01-14

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/markedjs/marked/commit/8f806573a3f6c6b7a39b8cdb66ab5ebb8d55a5f5Patch, Third Party Advisory
https://github.com/markedjs/marked/security/advisories/GHSA-5v2h-r2cx-5xgjExploit, Third Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AIXDMC3CSHYW3YWVSQOXAWLUYQHAO5UX/

Products

ProductAffectedPlatform boundSourcesUrl
marked_project:marked< 4.0.10nonvd/v1/products/marked_project/marked
fedoraproject:fedora= 36nonvd/v1/products/fedoraproject/fedora

Projects

RepositoryLink kindsIndexedUrl
markedjs/markedcommit, package, security_advisoryyes/v1/repositories/markedjs/marked

Index

  • Repositories: 138
  • Repositories high signal: 56
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2022-01-14
  • Remote: yes
  • Exposed hosts: 49161
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports