{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "3.0.0"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "14ebe026feb5e3f22713c000be03537dc0a55613"
            },
            {
              "fixed": "edbdaff077ea0cf295b1469923c06bbccad3c180"
            }
          ],
          "repo": "https://github.com/rosen-vladimirov/global-modules-path",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "Versions of the package global-modules-path before 3.0.0 are vulnerable to Command Injection due to missing input sanitization or other checks and sandboxes being employed to the getPath  function.\r\r",
  "id": "CVE-2022-21191",
  "modified": "2026-03-15T13:50:03.763608925Z",
  "published": "2023-01-13T05:15:19.150Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/lorenzomigliorero/npm-node-utils/blob/b55dd81c597db657c9751332bb2242403fd3e26b/index.js%23L186"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/rosen-vladimirov/global-modules-path/releases/tag/v3.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://security.snyk.io/vuln/SNYK-JS-GLOBALMODULESPATH-3167973"
    },
    {
      "type": "FIX",
      "url": "https://github.com/rosen-vladimirov/global-modules-path/commit/edbdaff077ea0cf295b1469923c06bbccad3c180"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}