Read the docs
TI-2021-06048 Aliases CVE-2021-23352GHSA-753c-phhg-cj29

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

VendorProductAffected versionsFixed inStatusSource
—madgebefore 4.0.14.0.1Patch availableCNA
—madge (npm)before 4.0.14.0.1Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:madge_project:madge:*:*:*:*:*:node.js:*:*before 4.0.1VulnerableMadge 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

  1. 2026-10-02 Threatist record created from CVE-2021-23352
  2. 2026-10-03 Alias added: GHSA-753c-phhg-cj29

References

Sources