Back

HIGH

Cubic catastrophic backtracking (ReDoS) in marked

Published Jan 14, 2022

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.

Affected products

Remediation

No remediation recorded yet.

References (11)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Jan 14, 2022
Updated Apr 22, 2025
Reserved Nov 16, 2021
CISA Vulnrichment
Updated Apr 22, 2025
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Jan 14, 2022
ENISA EUVD
Assigner GitHub_M
Published Jan 14, 2022
Updated Apr 22, 2025
Exploited since n/a
EUVD-2022-0691 GHSA-RRRM-QJM4-V8HF