


Perceptive Security
SOC/SIEM Consultancy

bestzip builds the argument list for the system zip utility without separating options from operands. The destination archive path and the caller-supplied sourc…
Published:
26 August 2026 at 00:00:00
Alert date:
26 August 2026 at 19:06:19
Source:
nvd.nist.gov
Supply Chain & Dependencies, Web Technologies
CVE-2026-80427 is an argument injection vulnerability in the bestzip npm package, which wraps the system zip utility. The package fails to separate options from operands using a -- delimiter when building the argument list for zip. This allows attacker-controlled source path entries beginning with a hyphen to be interpreted as zip options rather than file names. By supplying -T and -TT flags along with a malicious command string, an attacker can cause zip to execute arbitrary shell commands after archive creation. Any application passing untrusted file paths to the bestzip API is vulnerable to arbitrary command execution. The vulnerability is fixed in versions 2.2.6 and 3.0.2, which add the required -- delimiter to separate options from operands.
Technical details
Mitigation steps:
Affected products:
bestzip
node-bestzip
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-80427
https://github.com/nfriedly/node-bestzip
https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc
https://www.npmjs.com/package/bestzip
https://www.vulncheck.com/advisories/bestzip-before-2.2.6-and-3.0-x-before-3.0.2-argument-injection-via-missing-option-delimiter
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
