Live threats

All CVEs / Madge Project

CVE-2021-23352Madge Project Madge

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.1%
probability of exploitation in 30 days · percentile 82
Auth required
No
Published
Mar 9, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Madge.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm madge < 4.0.1 4.0.1 npm install madge@4.0.1

Per OSV / GitHub Advisories (GHSA-753c-phhg-cj29). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
madge_projectmadge< 4.0.1

Official sources

References

Links published by the sources. Open them with care.