What’s Vulnerable › Vulnerabilities
CVE-2026-87794: bestzip 2.2.6 and 3.0.2 Argument Injection via the Native Zip Destination
- Severity: high (CVSS 8.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-09 · updated 2026-09-18
- Weakness: CWE-88
Description
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.
Affected products
- nfriedly bestzip: from 2.2.6 before 2.2.7; from 3.0.2 before 3.0.3 — fixed in 2.2.7, 3.0.3
How to fix
Upgrade to a fixed version: nfriedly bestzip 2.2.7, 3.0.3. Check the vendor advisory for mitigations.
References
- 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/commit/2adb637b0acb05b8475de7db5af4b86ffcf40aaf
- 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://www.npmjs.com/package/bestzip
- https://www.vulncheck.com/advisories/bestzip-2.2.6-and-3.0.2-argument-injection-via-the-native-zip-destination
Get alerted when CVE-2026-87794 or the next vulnerability affects your stack