CVE-2021-23352

critical

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.

References

https://snyk.io/vuln/SNYK-JS-MADGE-1082875

https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332

https://github.com/pahen/madge/blob/master/lib/graph.js%23L27

Details

Source: Mitre, NVD

Published: 2021-03-09

Updated: 2026-06-17

Risk Information

CVSS v2

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Severity: High

CVSS v3

Base Score: 9.8

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: Critical

EPSS

EPSS: 0.00625