{"id":"CVE-2026-87794","state":"PUBLISHED","title":"bestzip 2.2.6 and 3.0.2 Argument Injection via the Native Zip Destination","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.","publishedAt":"2026-09-09T10:07:27.925Z","updatedAt":"2026-09-18T17:23:10.051Z","severity":{"score":8.6,"label":"High","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["nfriedly bestzip"],"affected":[{"vendor":"nfriedly","product":"bestzip","packageURL":"pkg:npm/bestzip","defaultStatus":"unaffected","versions":[{"version":"2.2.6","status":"affected","lessThan":"2.2.7","versionType":"semver"},{"version":"3.0.2","status":"affected","lessThan":"3.0.3","versionType":"semver"}],"collectionURL":"https://www.npmjs.com/package/bestzip","repo":"https://github.com/nfriedly/node-bestzip"}],"references":["https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-xhwx-rch4-ph2v","https://github.com/nfriedly/node-bestzip/commit/2adb637b0acb05b8475de7db5af4b86ffcf40aaf","https://github.com/nfriedly/node-bestzip/blob/v3.0.2/lib/bestzip.js","https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc","https://www.npmjs.com/package/bestzip","https://github.com/nfriedly/node-bestzip","https://www.vulncheck.com/advisories/bestzip-2.2.6-and-3.0.2-argument-injection-via-the-native-zip-destination"],"weaknesses":["CWE-88"],"ingestedAt":"2026-10-29T20:13:26.108Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/87xxx/CVE-2026-87794.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-87794","state":"PUBLISHED","datePublished":"2026-09-09T10:07:27.925Z","dateUpdated":"2026-09-18T17:23:10.051Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-09-09T09:37:54.271Z"},"containers":{"cna":{"title":"bestzip 2.2.6 and 3.0.2 Argument Injection via the Native Zip Destination","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"nfriedly","product":"bestzip","packageURL":"pkg:npm/bestzip","defaultStatus":"unaffected","versions":[{"version":"2.2.6","status":"affected","lessThan":"2.2.7","versionType":"semver"},{"version":"3.0.2","status":"affected","lessThan":"3.0.3","versionType":"semver"}],"collectionURL":"https://www.npmjs.com/package/bestzip","repo":"https://github.com/nfriedly/node-bestzip"}],"references":[{"url":"https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-xhwx-rch4-ph2v","tags":["vendor-advisory"],"name":"GitHub Security Advisory (GHSA-xhwx-rch4-ph2v)"},{"url":"https://github.com/nfriedly/node-bestzip/commit/2adb637b0acb05b8475de7db5af4b86ffcf40aaf","tags":["patch"],"name":"Fix commit (2.2.7, 3.0.3)"},{"url":"https://github.com/nfriedly/node-bestzip/blob/v3.0.2/lib/bestzip.js","tags":["technical-description"],"name":"Vulnerable nativeZip argument list at v3.0.2"},{"url":"https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc","tags":["related","vendor-advisory"],"name":"GitHub Security Advisory (GHSA-p87m-9567-rgcc)"},{"url":"https://www.npmjs.com/package/bestzip","tags":["product"]},{"url":"https://github.com/nfriedly/node-bestzip","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/bestzip-2.2.6-and-3.0.2-argument-injection-via-the-native-zip-destination","name":"VulnCheck Advisory: bestzip 2.2.6 and 3.0.2 Argument Injection via the Native Zip Destination","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.6,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.4,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-88","lang":"en","description":"Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-09T10:07:27.925Z"},"datePublic":"2026-08-28T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:bestzip_project:bestzip:*:*:*:*:*:*:*:*","versionStartIncluding":"2.2.6","versionEndExcluding":"2.2.7"},{"vulnerable":true,"criteria":"cpe:2.3:a:bestzip_project:bestzip:*:*:*:*:*:*:*:*","versionStartIncluding":"3.0.2","versionEndExcluding":"3.0.3"}]}]}],"credits":[{"lang":"en","value":"iamabighotdog","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"},"source":{"discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-87794","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-09-18T17:08:17.418630Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-18T17:23:10.051Z"}}]}}}