---
title: "CVE-2026-87794: bestzip - Command Injection"
description: "bestzip 2.2.6 and 3.0.2 contain a command injection caused by argument injection in the nativeZip function, letting attackers execute arbitrary commands with Node.js process privileges, exploit requires crafted source entries and malicious destination path."
url: https://panop.io/threat-heartbeat/CVE-2026-87794/
---

# CVE-2026-87794 bestzip - Command Injection

bestzip 2.2.6 and 3.0.2 contain a command injection caused by argument injection in the nativeZip function, letting attackers execute arbitrary commands with Node.js process privileges, exploit requires crafted source entries and malicious destination path.

CVSS base score 8.4 /10

High

CISA KEV

Not listed

Public exploit

None known

Authentication

Not required

EPSS

0.28% chance of exploitation in 30 days

[View the NVD record ↗](https://nvd.nist.gov/vuln/detail/CVE-2026-87794)

## Details

Type

Command Injection

Impact

Remote Code Execution

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Published

9 September 2026

Updated

15 October 2026

Weakness

[CWE-88](https://cwe.mitre.org/data/definitions/88.html)

## Vendor fix

Upgrade to versions 2.2.7 and 3.0.3 or later.

Patching closes this CVE. It does not tell you which of your systems run the affected version, or what else is exposed alongside them.

## References

- [https://nvd.nist.gov/vuln/detail/CVE-2026-87794](https://nvd.nist.gov/vuln/detail/CVE-2026-87794)
- [https://www.vulncheck.com/advisories/bestzip-2.2.6-and-3.0.2-argument-injection-via-the-native-zip-destination](https://www.vulncheck.com/advisories/bestzip-2.2.6-and-3.0.2-argument-injection-via-the-native-zip-destination)
- [https://github.com/nfriedly/node-bestzip](https://github.com/nfriedly/node-bestzip)
- [https://github.com/nfriedly/node-bestzip/blob/v3.0.2/lib/bestzip.js](https://github.com/nfriedly/node-bestzip/blob/v3.0.2/lib/bestzip.js)
- [https://github.com/nfriedly/node-bestzip/commit/2adb637b0acb05b8475de7db5af4b86ffcf40aaf](https://github.com/nfriedly/node-bestzip/commit/2adb637b0acb05b8475de7db5af4b86ffcf40aaf)
- [https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc](https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc)
- [https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-xhwx-rch4-ph2v](https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-xhwx-rch4-ph2v)
- [https://www.npmjs.com/package/bestzip](https://www.npmjs.com/package/bestzip)

[← All CVEs](https://panop.io/threat-heartbeat/)

## What this record can't tell you

- Whether you run the affected software, and where
- Whether an attacker can actually reach and exploit it
- The misconfigurations that never get a CVE number
- What it would cost the business, ranked into what to fix first

Panop answers these inside your environment, for this CVE and every other finding.

[Book a demo](https://panop.io/demo)
