Skip to main content
← All vulnerabilities
CVE-2022-21680GHSA-RRRM-QJM4-V8HF

Cubic catastrophic backtracking (ReDoS) in marked

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.0.10
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • markedjs marked

    fixed in 4.0.10

  • markednpm

    fixed in 4.0.10

References 4

GitHub · markedjs/marked

lists.fedoraproject.org