CVE-2021-23352
HIGHmadge < 4.0.1 - OS Command Injection via GraphViz Path Parameter
Title source: llmDescription
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.
References (3)
Core 3
Core References
Exploit, Patch, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-MADGE-1082875
Broken Link, Third Party Advisory x_refsource_misc
https://github.com/pahen/madge/blob/master/lib/graph.js%23L27
Patch, Third Party Advisory x_refsource_misc
https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332
Scores
CVSS v3
8.6
EPSS
0.0206
EPSS Percentile
79.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Details
CWE
CWE-89
Status
published
Products (2)
madge_project/madge
< 4.0.1
npm/madge
0 - 4.0.1npm
Published
Mar 09, 2021
Tracked Since
Feb 18, 2026