CVE-2017-17461: Marked Moderate Severity Vulnerability That Affects Vulnerability

MODERATE
Advisory Identifier: GHSA-crmx-v835-hcp4
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2017-17461
GHSA Identifier GHSA-crmx-v835-hcp4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Marked
Package Ecosystem npm
Published Date
Last Updated

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.

marked fixed: 0.3.9
npm install marked@0.3.9
Verify Direct and Transitive Dependencies

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

# Withdrawn This 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) # Original Description A 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.

CVE-2017-17461 Affected Marked Versions

1 component(s)
Fixed Versions:
0.3.9
Product / Package Ecosystem Affected Versions Fixed Version
marked
npm
< 0.3.9
0.3.9

References

Frequently Asked Questions

What is CVE-2017-17461?
CVE-2017-17461 is a security vulnerability in Marked involving Moderate severity vulnerability that affects marked under General Security Weakness.
Which Marked versions are affected?
Affected versions include releases prior to 0.3.9 across affected packages: marked.
What version fixes CVE-2017-17461?
Upgrading to 0.3.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is marked affected?
Yes, marked is affected in releases prior to 0.3.9. Upgrade your dependency to 0.3.9 or later.
What CWE is associated with CVE-2017-17461?
CVE-2017-17461 is classified under General Security Weakness.
How can I check npm dependencies for CVE-2017-17461?
Run the dependency tree command: 'npm ls marked'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}