{
  "schema_version": "1.4.0",
  "id": "GHSA-cff4-rrq6-h78w",
  "modified": "2020-08-31T18:31:41Z",
  "published": "2019-06-03T17:31:26Z",
  "aliases": [],
  "summary": "Command Injection in command-exists",
  "details": "Versions of `command-exists` before 1.2.4 are vulnerable to command injection. This is exploitable if user input is provided to this module.\n\n\n## Recommendation\n\nUpdate to version 1.2.4 or later.",
  "severity": [],
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "command-exists"
      },
      "ranges": [
        {
          "type": "ECOSYSTEM",
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.2.4"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/mathisonian/command-exists/commit/7ca91ba71604df6817a28c93d7776af9c49c431a"
    },
    {
      "type": "WEB",
      "url": "https://hackerone.com/reports/324453"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mathisonian/command-exists/blob/v1.2.2/lib/command-exists.js#L49-L94"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/advisories/659"
    }
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-77"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2019-06-03T17:28:56Z",
    "nvd_published_at": null
  }
}