CVE-2022-21681
Assigner: GitHub_M
Published: 2022-01-14T00:00:00
State: PUBLISHED
title: Exponential catastrophic backtracking (ReDoS) in marked
descriptions: value: 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.
affected: vendor: markedjs
product: marked
versions: version: < 4.0.10
status: affected
metrics: cvssV3_1: version: 3.1
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: NONE
integrityImpact: NONE
availabilityImpact: HIGH
baseScore: 7.5
baseSeverity: HIGH
problemTypes: descriptions: type: CWE
description: CWE-400: Uncontrolled Resource Consumption
cweId: CWE-400
descriptions: type: CWE
description: CWE-1333: Inefficient Regular Expression Complexity
cweId: CWE-1333
source: advisory: GHSA-5v2h-r2cx-5xgj
discovery: UNKNOWN