CVE-2018-25110: Marked Denial of Service Vulnerability
MODERATECVE-2018-25110 is a MODERATE denial of service vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affecting Marked libraries in the npm ecosystem. The issue involves marked allows regular expression denial of service (redos) attacks. Remediation is available by upgrading affected packages to version 0.3.17.
CVE-2018-25110 at a Glance
How to Fix CVE-2018-25110
To remediate this vulnerability, upgrade all affected Marked dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install marked@0.3.17
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls marked
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-25110, inspect your project dependencies using npm:
npm ls marked
Analyze the terminal output to locate any version of Marked in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.17), your application is affected.
Note: The npm ls marked command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-1333: Inefficient Regular Expression Complexity, where the product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential. In Marked, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-25110 Affected Marked Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
marked
|
npm |
< 0.3.17
|
0.3.17
|
References
Frequently Asked Questions
What is CVE-2018-25110?
Which Marked versions are affected?
What version fixes CVE-2018-25110?
Is marked affected?
What CWE is associated with CVE-2018-25110?
How can I check npm dependencies for CVE-2018-25110?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p9wx-2529-fp83",
"modified" : "2025-05-27T15:03:47Z",
"published" : "2025-05-23T15:31:16Z",
"aliases" : [ "CVE-2018-25110" ],
"summary" : "Marked allows Regular Expression Denial of Service (ReDoS) attacks",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "marked"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.17"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-25110"
}, {
"type" : "WEB",
"url" : "https://github.com/markedjs/marked/issues/1070"
}, {
"type" : "WEB",
"url" : "https://github.com/markedjs/marked/pull/1083"
}, {
"type" : "WEB",
"url" : "https://github.com/markedjs/marked/commit/20bfc106013ed45713a21672ad4a34df94dcd485"
}, {
"type" : "WEB",
"url" : "https://github.com/Checkmarx/Vulnerabilities-Proofs-of-Concept/tree/main/2018/CVE-2018-25110"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/markedjs/marked"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1333" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-05-27T15:03:47Z",
"nvd_published_at" : "2025-05-23T15:15:20Z"
}
}