Intel

AIKIDO-2026-761465

bestzip is vulnerable to Argument Injection

Argument InjectionGHSA-p87m-9567-rgcc Published Aug 10, 2026

84

High Risk

This Affects:

JSbestzip
0.0.1 - 2.2.5
Fixed in 2.2.6
3.0.0 - 3.0.1
Fixed in 3.0.2
Are you affected? Scan for Free

TL;DR

bestzip is a Node.js wrapper that builds an argument array for the system's native zip binary and passes user-supplied source file paths to it. It does not place the -- option terminator before the source list, so a source path beginning with - is parsed by native zip as an operational flag instead of a filename. The fix inserts -- before the expanded sources so all following tokens are treated strictly as filenames.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you pass untrusted source file paths to bestzip.

Background info

bestzip is vulnerable to Argument Injection in versions 0.0.1 - 2.2.5 and 3.0.0 - 3.0.1.

How to fix this

Upgrade the bestzip library to the patch version.