Command injection in madge
Priority MEDIUM 46CWE-89Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection, Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-89 and CWE-77.
Summary
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.
Why it matters now
EPSS 0.02057 81st percentileScored 2026-11-07
Fix Fixed madge: 4.0.1madge (npm): 4.0.1
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | madge | before 4.0.1 | 4.0.1 | Patch available | CNA |
| — | madge (npm) | before 4.0.1 | 4.0.1 | Patch available | GHSA-753c-phhg-cj29 |
- madge Vendor— Affected before 4.0.1 Fixed in 4.0.1 Patch available CNA
- madge (npm) Vendor— Affected before 4.0.1 Fixed in 4.0.1 Patch available GHSA-753c-phhg-cj29
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:madge_project:madge:*:*:*:*:*:node.js:*:* | before 4.0.1 | Vulnerable | Madge Project |
- cpe:2.3:a:madge_project:madge:*:*:*:*:*:node.js:*:* Versions before 4.0.1 Vulnerable ·Madge Project
Remediation
- Fix · CNA madge Fixed in 4.0.1
- Fix · GHSA-753c-phhg-cj29 madge (npm) Fixed in 4.0.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-23352
- 2026-10-03 Alias added: GHSA-753c-phhg-cj29
References
Sources
- CVE-2021-23352 · CVE Program
- CVE-2021-23352 · NVD
- FIRST EPSS
- GHSA-753c-phhg-cj29 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences