NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2018-25110: Marked allows Regular Expression Denial of Service (ReDoS) attacks

mediumCVSS 4.0 6.9GHSA-p9wx-2529-fp83

Marked prior to version 0.3.17 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to catastrophic backtracking in several regular expressions used for parsing HTML tags and markdown links.

Published May 23, 2025 · Updated May 27, 2025

Affected packages

marked

Ecosystem
npm
Affected
< 0.3.17
Fixed in
0.3.17
Check
npm ls marked

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Marked prior to version 0.3.17 is vulnerable to a Regular Expression Denial of Service (ReDoS) attack due to catastrophic backtracking in several regular expressions used for parsing HTML tags and markdown links. An attacker can exploit this vulnerability by providing specially crafted markdown input, such as deeply nested or repetitively structured brackets or tag attributes, which cause the parser to hang and lead to a Denial of Service.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More npm vulnerabilities

All npm entries