Vulnerability · Published Mar 9, 2021 · Assigned by snyk
CVE-2021-23352Command Injection
High 8.6
In plain English
A high-severity security flaw in madge. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.1% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.6High
Exploit odds (30 days)2.1%top 18.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
This affects the package madge before 4.0.1. It is possible to specify a custom Graphviz path via the graphVizPath option parameter which when the .image(), .svg() or .dot() functions are called, is executed by the childprocess.exec function.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | madge | 4.0.1 | GHSA-753c-phhg-cj29 |
Affected products (as reported)
References
- https://snyk.io/vuln/SNYK-JS-MADGE-1082875 x_refsource_MISC
- https://github.com/pahen/madge/blob/master/lib/graph.js%23L27 x_refsource_MISC
- https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332 x_refsource_MISC