{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.2.6"
              },
              {
                "introduced": "3.0.0"
              },
              {
                "fixed": "3.0.2"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4b301c1111f516f1f6ec7cde1879ed13f3da2244"
            },
            {
              "introduced": "212d87b79ff02a55499b4038cfcdee97c9c6aaa2"
            },
            {
              "fixed": "e1be686b835491033ae2de9069a9874107de11ab"
            }
          ],
          "repo": "https://github.com/nfriedly/node-bestzip",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-p87m-9567-rgcc"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-88"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80427.json"
  },
  "details": "bestzip builds the argument list for the system zip utility without separating options from operands. The destination archive path and the caller-supplied source paths are passed to the child process with no -- delimiter between them, so any source entry beginning with a hyphen is interpreted by zip as an option rather than a file name. zip accepts -T to test the finished archive and -TT to name the command used to perform that test, so a source list containing those two entries and a command string causes zip to run that command through a shell once the archive has been written. An application that passes a file name or path it received from an untrusted source into the bestzip API therefore executes a command of the supplier's choosing. Versions 2.2.6 and 3.0.2 add the delimiter.",
  "id": "CVE-2026-80427",
  "modified": "2026-08-30T03:31:05.417841110Z",
  "published": "2026-08-26T15:44:55.220Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://www.npmjs.com/package/bestzip"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80427.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-80427"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/bestzip-before-2.2.6-and-3.0-x-before-3.0.2-argument-injection-via-missing-option-delimiter"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/nfriedly/node-bestzip"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "bestzip before 2.2.6 and 3.0.x before 3.0.2 Argument Injection via Missing Option Delimiter"
}