Arbitrary Argument Injection Affecting bestzip package, versions <2.2.6>=3.0.0 <3.0.2


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-BESTZIP-19276666
  • published27 Aug 2026
  • disclosed26 Aug 2026
  • creditpoqpwppy

Introduced: 26 Aug 2026

NewCVE-2026-80427  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade bestzip to version 2.2.6, 3.0.2 or higher.

Overview

bestzip is an Uses OS zip command if avaliable (for better performance and speed) or node.js version if there is no system command avaliable. Can be called via node or command line.

Affected versions of this package are vulnerable to Arbitrary Argument Injection through the nativeZip process in lib/bestzip.js. An attacker can execute arbitrary commands on the host by supplying source paths that begin with - so they are passed to the native zip CLI as flags instead of filenames. In deployments where untrusted input reaches bestzip, this lets a malicious source list inject zip options such as -T and -TT, causing the process to run attacker-controlled commands with the privileges of the Node.js application.

CVSS Base Scores

version 4.0
version 3.1