{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "4.0.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "abae6d0dfe0c96218545bfe7fcffbb60322af3b4"
            },
            {
              "fixed": "da5cbc9ab30372d687fa7c324b22af7ffa5c6332"
            }
          ],
          "repo": "https://github.com/pahen/madge",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2021-23352",
  "modified": "2026-04-01T23:09:38.207193623Z",
  "published": "2021-03-09T19:15:12.860Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/pahen/madge/blob/master/lib/graph.js%23L27"
    },
    {
      "type": "FIX",
      "url": "https://snyk.io/vuln/SNYK-JS-MADGE-1082875"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pahen/madge/commit/da5cbc9ab30372d687fa7c324b22af7ffa5c6332"
    }
  ],
  "related": [
    "SNYK-JS-MADGE-1082875"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}