{"id":"CVE-2026-87794","summary":"bestzip 2.2.6 and 3.0.2 Argument Injection via the Native Zip Destination","details":"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.","modified":"2026-09-12T03:31:01.525989850Z","published":"2026-09-09T10:07:27.925Z","related":["GHSA-p87m-9567-rgcc","GHSA-xhwx-rch4-ph2v"],"database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-88"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87794.json"},"references":[{"type":"WEB","url":"https://www.npmjs.com/package/bestzip"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/87xxx/CVE-2026-87794.json"},{"type":"ADVISORY","url":"https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc"},{"type":"ADVISORY","url":"https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-xhwx-rch4-ph2v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-87794"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/bestzip-2.2.6-and-3.0.2-argument-injection-via-the-native-zip-destination"},{"type":"FIX","url":"https://github.com/nfriedly/node-bestzip/commit/2adb637b0acb05b8475de7db5af4b86ffcf40aaf"},{"type":"PACKAGE","url":"https://github.com/nfriedly/node-bestzip"},{"type":"ARTICLE","url":"https://github.com/nfriedly/node-bestzip/blob/v3.0.2/lib/bestzip.js"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/nfriedly/node-bestzip","events":[{"introduced":"4b301c1111f516f1f6ec7cde1879ed13f3da2244"},{"introduced":"e1be686b835491033ae2de9069a9874107de11ab"},{"fixed":"7abcd2cad2fefa3437042f6fa0215897856a678c"},{"fixed":"964012373b521c6de09f4d430d10c544f7a9229e"},{"fixed":"2adb637b0acb05b8475de7db5af4b86ffcf40aaf"}],"database_specific":{"extracted_events":[{"introduced":"2.2.6"},{"fixed":"2.2.7"},{"introduced":"3.0.2"},{"fixed":"3.0.3"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["v2.2.6","v3.0.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-87794.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}