Madge vulnerable to command injection
High severity
GitHub Reviewed
Published
Mar 12, 2021
to the GitHub Advisory Database
•
Updated Sep 6, 2023
Description
Published by the National Vulnerability Database
Mar 9, 2021
Reviewed
Mar 12, 2021
Published to the GitHub Advisory Database
Mar 12, 2021
Last updated
Sep 6, 2023
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.
PoC
References