UnratednpmAmendedPublished
Madge vulnerable to command injection
CVE-2021-23352 · GHSA-753c-phhg-cj29
- Affected
- npm madge < 4.0.1
- Fixed in
- 4.0.1· Vendor fix available
- Issue
- 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
Recommended action: Upgrade to 4.0.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.