ZeroHour

CVE-2026-87794

moderate

Argument injection RCE in bestzip npm package via Info-ZIP backend

CVSS 4.0
8.6 high
EPSS
Published
()
Modified
AI analysis

bestzip, an npm package that shells out to the Info-ZIP command-line tool, contains an argument injection flaw (CWE-88) in its nativeZip function in versions 2.2.6 and 3.0.2. An attacker who can control the destination path or the source entry names passed to a zip operation can inject additional command-line arguments to the Info-ZIP backend, causing it to execute arbitrary commands. Successful exploitation runs those commands with the privileges of the Node.js process, which in practice means developer workstations and CI/CD build runners rather than internet-facing production services. Any project or build pipeline using the affected versions of bestzip is exposed, and fixed releases are available in the 2.2.7 and 3.0.3 versions. No public proof-of-concept, CISA KEV listing, or reports of in-the-wild exploitation are known at this time.

What to do: Upgrade to bestzip 2.2.7 if you are on the 2.x line or 3.0.3 if you are on the 3.x line. Until upgraded, treat any destination paths and source entry names passed to nativeZip as untrusted input and validate or sanitize them, since attacker-controlled paths are the injection vector. Review build and CI logs (including Electron packaging pipelines) for unexpected child processes spawned by the zip command.

Affected
bestzip (npm package) bestzip2.2.6 and 3.0.2 (per advisory; fixed in 2.2.7 and 3.0.3)
Estimated exposure
moderatelikely on the order of tens of thousands of downstream Node.js build and CI environments — bestzip is a build-time npm utility (commonly pulled in by Node.js and Electron application packaging tooling) rather than an internet-facing service, so exposure is limited to developer machines and CI/CD runners; no install or scan…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Weakness
CWE-88
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.