CVE-2017-17461: Marked Moderate Severity Vulnerability That Affects Vulnerability
MODERATECVE-2017-17461 is a MODERATE moderate severity vulnerability that affects vulnerability (General Security Weakness) affecting Marked libraries in the npm ecosystem. The issue involves moderate severity vulnerability that affects marked. Remediation is available by upgrading affected packages to version 0.3.9.
CVE-2017-17461 at a Glance
How to Fix CVE-2017-17461
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.9
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-2017-17461, 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.9), 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 General Security Weakness. 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-2017-17461 Affected Marked Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
marked
|
npm |
< 0.3.9
|
0.3.9
|
References
Frequently Asked Questions
What is CVE-2017-17461?
Which Marked versions are affected?
What version fixes CVE-2017-17461?
Is marked affected?
What CWE is associated with CVE-2017-17461?
How can I check npm dependencies for CVE-2017-17461?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-crmx-v835-hcp4",
"modified" : "2021-12-02T22:47:59Z",
"published" : "2018-01-04T21:04:09Z",
"withdrawn" : "2021-12-02T22:47:36Z",
"aliases" : [ "CVE-2017-17461" ],
"summary" : "Moderate severity vulnerability that affects marked",
"details" : "# Withdrawn\n\nThis advisory has been withdrawn, per NVD: [\"This candidate was withdrawn by its CNA. Further investigation showed that it was not a security issue.\"](https://nvd.nist.gov/vuln/detail/CVE-2017-17461)\n\n# Original Description\n\nA Regular expression Denial of Service (ReDoS) vulnerability in the file marked.js of the marked npm package (tested on version 0.3.7) allows a remote attacker to overload and crash a server by passing a maliciously crafted string.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "marked"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.3.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-17461"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-crmx-v835-hcp4"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T21:32:51Z",
"nvd_published_at" : null
}
}