CVE-2021-23352
CRITICAL 9.8CVSS 3.1Madge vulnerable to command injection
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
- 9 Mar 2021
- Last modified
- 8 Jul 2026
- Assigned by
- report@snyk.io
- NVD status
- Modified
- Weakness
- CWE-77CWE-89
- Also known as
- GHSA-753c-phhg-cj29SNYK-JS-MADGE-1082875
- Sources
- NVDJSONOSV GHSA-753c-phhg-cj29JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | report@snyk.io (Secondary) | CVSS 3.1 | HIGH 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | madge_project | madgecpe:2.3:a:madge_project:madge:*:*:*:*:*:node.js:*:* |
< 4.0.1 | 4.0.1 |
| OSV | npm | madge | < 4.0.1 | 4.0.1 |
References
- https://github.com/pahen/madge/blob/master/lib/graph.js%23L27 · Broken Link, Third Party Advisory
- https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332 · Patch, Third Party Advisory, WEB
- https://snyk.io/vuln/SNYK-JS-MADGE-1082875 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-23352 · ADVISORY
- https://github.com/pahen/madge/blob/master/lib/graph.js#L27 · WEB
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 9 Mar 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 12 Mar 2021)