{"api_version":"1","generated_at":"2026-07-23T15:42:13+00:00","cve":"CVE-2021-23352","urls":{"html":"https://cve.report/CVE-2021-23352","api":"https://cve.report/api/cve/CVE-2021-23352.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-23352","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-23352"},"summary":{"title":"CVE-2021-23352","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.","state":"PUBLIC","assigner":"report@snyk.io","published_at":"2021-03-09 19:15:00","updated_at":"2021-03-13 00:22:00"},"problem_types":["CWE-89"],"metrics":[],"references":[{"url":"https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332","name":"https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Fix potential command injection vulnerability · pahen/madge@da5cbc9 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://snyk.io/vuln/SNYK-JS-MADGE-1082875","name":"https://snyk.io/vuln/SNYK-JS-MADGE-1082875","refsource":"MISC","tags":["Exploit","Patch","Third Party Advisory"],"title":"Command Injection in madge | Snyk","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/pahen/madge/blob/master/lib/graph.js%23L27","name":"https://github.com/pahen/madge/blob/master/lib/graph.js%23L27","refsource":"MISC","tags":["Broken Link","Third Party Advisory"],"title":"","mime":"","httpstatus":"","archivestatus":""},{"url":"https://github.com/pahen/madge/blob/master/lib/graph.js#L27","name":"MISC:https://github.com/pahen/madge/blob/master/lib/graph.js%23L27","refsource":"MITRE","tags":[],"title":"madge/graph.js at master · pahen/madge · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-23352","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23352","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"Alessio Della Libera (d3lla)","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"23352","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"madge_project","cpe5":"madge","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"23352","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"madge_project","cpe5":"madge","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-23352","qid":"982918","title":"Nodejs (npm) Security Update for madge (GHSA-753c-phhg-cj29)"}]},"source_records":{"cve_program":{"data_type":"CVE","data_format":"MITRE","data_version":"4.0","CVE_data_meta":{"ASSIGNER":"report@snyk.io","DATE_PUBLIC":"2021-03-09T18:27:51.463518Z","ID":"CVE-2021-23352","STATE":"PUBLIC","TITLE":"Command Injection"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"madge","version":{"version_data":[{"version_affected":"<","version_value":"4.0.1"}]}}]},"vendor_name":"n/a"}]}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"Command Injection"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://snyk.io/vuln/SNYK-JS-MADGE-1082875","name":"https://snyk.io/vuln/SNYK-JS-MADGE-1082875"},{"refsource":"MISC","url":"https://github.com/pahen/madge/blob/master/lib/graph.js%23L27","name":"https://github.com/pahen/madge/blob/master/lib/graph.js%23L27"},{"refsource":"MISC","url":"https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332","name":"https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332"}]},"description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L/E:F/RL:O/RC:C","baseScore":8.6,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"LOW","availabilityImpact":"LOW"}},"credit":[{"lang":"eng","value":"Alessio Della Libera (d3lla)"}]},"nvd":{"publishedDate":"2021-03-09 19:15:00","lastModifiedDate":"2021-03-13 00:22:00","problem_types":["CWE-89"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:madge_project:madge:*:*:*:*:*:node.js:*:*","versionEndExcluding":"4.0.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"23352","Ordinal":"198079","Title":"CVE-2021-23352","CVE":"CVE-2021-23352","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"23352","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"23352","Ordinal":"2","NoteData":"2021-03-09","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"23352","Ordinal":"3","NoteData":"2021-03-09","Type":"Other","Title":"Modified"}]}}}