GHSA-7m7q-q53v-j47v: Marked Denial of Service Vulnerability
MODERATEGHSA-7m7q-q53v-j47v is a MODERATE denial of service vulnerability (General Security Weakness) affecting Marked libraries in the npm ecosystem. The issue involves regular expression denial of service. Remediation is available by upgrading affected packages to version 0.6.1.
GHSA-7m7q-q53v-j47v at a Glance
How to Fix GHSA-7m7q-q53v-j47v
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.6.1
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 GHSA-7m7q-q53v-j47v, 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.6.1), 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
GHSA-7m7q-q53v-j47v Affected Marked Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
marked
|
npm |
≥ 0.5.0
< 0.6.1
|
0.6.1
|
References
Frequently Asked Questions
What is GHSA-7m7q-q53v-j47v?
Which Marked versions are affected?
What version fixes GHSA-7m7q-q53v-j47v?
Is marked affected?
What CWE is associated with GHSA-7m7q-q53v-j47v?
How can I check npm dependencies for GHSA-7m7q-q53v-j47v?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7m7q-q53v-j47v",
"modified" : "2021-02-25T02:01:47Z",
"published" : "2021-02-25T02:01:47Z",
"withdrawn" : "2021-02-25T02:01:47Z",
"aliases" : [ ],
"summary" : "Regular Expression Denial of Service",
"details" : "A flaw was found in nodejs-marked versions from 0.5.0 to before 0.6.1. Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). Input to the host variable is vulnerable when input contains parenthesis in link URIs, coupled with a high number of link tokens in a single line.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "marked"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.5.0"
}, {
"fixed" : "0.6.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Feder1co5oave/marktex/commit/cc8a45288b59ca10a8fedaed9028072021be9999"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1679550"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2019-06-04T19:45:00Z",
"nvd_published_at" : null
}
}