CVE-2021-23352Madge Project Madge
Critical 9.8 No auth needed
Follow: this CVE · Madge Project · Madge Project Madge We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Madge.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| madge_project | madge | < 4.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Broken Link Third Party Advisory
- github.com Patch Third Party Advisory
- snyk.io Exploit Patch Third Party Advisory