{"id":"CVE-2021-23352","aliases":["GHSA-753c-phhg-cj29","SNYK-JS-MADGE-1082875"],"url":"https://o3.security/vulnerability/CVE-2021-23352","summary":"Madge vulnerable to command injection","details":"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.","published":"2021-03-09T19:15:12.860Z","modified":"2026-07-09T14:44:01.494081Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"npm","name":"madge","fixedVersion":"4.0.1"}],"fix":{"url":"https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332","label":"pahen/madge@da5cbc9"},"references":[{"type":"ADVISORY","url":"https://github.com/pahen/madge/blob/master/lib/graph.js%23L27"},{"type":"FIX","url":"https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332"},{"type":"FIX","url":"https://snyk.io/vuln/SNYK-JS-MADGE-1082875"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T14:44:01.494081Z"}}