---
id: CVE-2026-87794
title: >-
  bestzip versions 2.2.6 and 3.0.2 contain an argument injection vulnerability
  in the nativeZip function that allows attackers to inject arbitrary arguments
  to the Info-ZIP backend
summary: >-
  bestzip versions 2.2.6 and 3.0.2 contain an argument injection vulnerability
  in the nativeZip function that allows attackers to inject arbitrary arguments
  to the Info-ZIP backend. Attackers can supply a malicious destination path
  combine…
severity: high
cvss: 8.4
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-88
vendor: nfriedly
product: bestzip
affected:
  - bestzip >= 2.2.6 < 2.2.7
  - bestzip >= 3.0.2 < 3.0.3
published: '2026-09-09'
updated: '2026-09-18'
sourceUpdated: '2026-09-18T18:17:32.947'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-87794'
references:
  - url: 'https://github.com/nfriedly/node-bestzip'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/nfriedly/node-bestzip/blob/v3.0.2/lib/bestzip.js'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/nfriedly/node-bestzip/commit/2adb637b0acb05b8475de7db5af4b86ffcf40aaf
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-xhwx-rch4-ph2v
    label: disclosure@vulncheck.com
  - url: 'https://www.npmjs.com/package/bestzip'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/bestzip-2.2.6-and-3.0.2-argument-injection-via-the-native-zip-destination
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
epss: 0.00188
epssPercentile: 0.08679
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-09-18T17:08:17.418630Z'
ingestedAt: '2026-09-11T16:15:22.750Z'
---

## Overview

bestzip versions 2.2.6 and 3.0.2 contain an argument injection vulnerability in the nativeZip function that allows attackers to inject arbitrary arguments to the Info-ZIP backend. Attackers can supply a malicious destination path combined with crafted source entries to execute arbitrary commands with Node.js process privileges. Fixed in 2.2.7 and 3.0.3.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
