CVE-2015-8854: Regular Expression Denial of Service in marked
7.5
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.76239%
CWE
Published
10/24/2017
Updated
2/9/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
marked | npm | < 0.3.4 | 0.3.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability specifically references the 'em inline rule' as the attack vector. In marked's architecture, inline parsing rules like emphasis are handled by regex patterns in the lexer. The ReDoS vulnerability stems from inefficient regex patterns in the emphasis rule that could be exploited with crafted underscore patterns. This matches the CWE-1333 (Inefficient Regex Complexity) classification and the GitHub issue #497 demonstrating CPU hang with underscore-heavy input. The patch in v0.3.4 would have addressed this specific regex pattern in the emphasis handling code.