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.
Published: 2026-09-09
Score: 8.6 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

bestzip versions 2.2.6 and 3.0.2 contain an argument injection flaw in the nativeZip function that allows a malicious user to inject arbitrary arguments to the underlying Info‑ZIP backend. The vulnerability enables the execution of arbitrary commands with Node.js process privileges, which can compromise confidentiality, integrity, and availability of the system by running code that has the same permissions as the Node process. The weakness is classified as CWE‑88, a command injection type flaw.

Affected Systems

The affected vendors/product is the bestzip library released by nfriedly. Affected releases are 2.2.6 and 3.0.2. Users of these Node.js packages that invoke the nativeZip function with user‑controlled paths or source entries are vulnerable.

Risk and Exploitability

The vulnerability has a high CVSS score of 8.6, indicating significant impact. EPSS is not available, but the lack of a KEV listing does not diminish the risk, especially for projects that deploy the vulnerable versions. Attackers must provide a malicious destination path and crafted source entries; the exploit is therefore possible when the library is used in an environment where untrusted input reaches nativeZip, such as web servers or CI pipelines that handle uploaded zip files. The exploit would let an attacker run arbitrary commands with the Node process level privileges, and could be used to lay persistence, exfiltrate data, or pivot to other systems.

Generated by OpenCVE AI on September 9, 2026 at 11:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade bestzip to version 2.2.7 or 3.0.3, which contains the fix.
  • If the library is not required, remove the dependency entirely from the project.
  • Implement input validation to restrict destination paths to a trusted whitelist before calling nativeZip.
  • Limit the source entries that are passed to nativeZip to a hardened set of verified files.
  • Monitor the application for unexpected command execution or changes in process attributes after zip extraction.

Generated by OpenCVE AI on September 9, 2026 at 11:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 09 Sep 2026 10:15:00 +0000

Type Values Removed Values Added
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.
Title bestzip 2.2.6 and 3.0.2 Argument Injection via the Native Zip Destination
First Time appeared Bestzip Project
Bestzip Project bestzip
Weaknesses CWE-88
CPEs cpe:2.3:a:bestzip_project:bestzip:*:*:*:*:*:*:*:*
Vendors & Products Bestzip Project
Bestzip Project bestzip
References
Metrics cvssV3_1

{'score': 8.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, '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'}


Subscriptions

Bestzip Project Bestzip
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-09T10:07:27.925Z

Reserved: 2026-09-09T09:37:54.271Z

Link: CVE-2026-87794

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-09T10:22:34.397

Modified: 2026-09-09T10:22:34.397

Link: CVE-2026-87794

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-09T11:30:09Z

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')