Security mailing lists by PureSourceCode

CVE-2021-23352

CRITICAL 9.8CVSS 3.1

Madge 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD madge_project madge
cpe:2.3:a:madge_project:madge:*:*:*:*:*:node.js:*:*
< 4.0.1 4.0.1
OSV npm madge < 4.0.1 4.0.1

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.