CVE-2021-23352

Command Injection

CRITICAL
9.8
CVSS Score
Published: March 9, 2021 at 06:30 PM UTC
Updated: June 17, 2026 at 03:38 AM UTC
1 product affected across 1 vendorMadge

Using madge by N/A?

Get instant alerts when new vulnerabilities affect madge - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
CRITICAL9.8
Exploit prediction
EPSS 2%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.0.1
Affected range stops below 4.0.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (3)

x_refsource_MISCBroken LinkThird Party Advisory
https://github.com/pahen/madge/blob/master/lib/graph.js%23L27
x_refsource_MISCExploitPatchThird Party Advisory
https://snyk.io/vuln/SNYK-JS-MADGE-1082875

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-89

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card