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.
Severity (CVSS)
| Base score | 8.6 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| 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 |
| Provided by | CNA |
Weaknesses
- CWE-88 — Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| nfriedly | bestzip | 2.2.6 to <2.2.7; 3.0.2 to <3.0.3 |
References
- https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-xhwx-rch4-ph2v (vendor-advisory)
- https://github.com/nfriedly/node-bestzip/commit/2adb637b0acb05b8475de7db5af4b86ffcf40aaf (patch)
- https://github.com/nfriedly/node-bestzip/blob/v3.0.2/lib/bestzip.js (technical-description)
- https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc (related vendor-advisory)
- https://www.npmjs.com/package/bestzip (product)
- https://github.com/nfriedly/node-bestzip (product)
- https://www.vulncheck.com/advisories/bestzip-2.2.6-and-3.0.2-argument-injection-via-the-native-zip-destination (third-party-advisory)
Generated from the official CVE List on 10 Sep 2026 07:03 UTC.