Regular Expression Denial of Service (DoS)

Affecting marked package, versions <=0.3.3

high severity

Overview

Marked 0.3.3 and earlier is vulnerable to regular expression denial of service (ReDoS) when certain types of input are passed in to be parsed.

Source: Node Security Project

Details

"The Regular expression Denial of Service (ReDoS) is a Denial of Service attack, that exploits the fact that most Regular Expression implementations may reach extreme situations that cause them to work very slowly (exponentially related to input size). An attacker can then cause a program using a Regular Expression to enter these extreme situations and then hang for a very long time." [1]

Marked's catastrophic backtracking issue for the em inline rule has now been patched in 0.3.4.

Remediation

Ugrade to marked v0.3.4 or later.

References

Snyk patch available for versions:

Credit
Barış Soner Uşaklı
CWE
CWE-185 CWE-730
Snyk ID
npm:marked:20140131-1
Disclosed
30 Jan, 2014
Published
30 Jan, 2014

Do your applications use this vulnerable package?