bestzip before 2.2.6 and 3.0.x before 3.0.2 Argument Injection via Missing Option Delimiter
bestzip builds the argument list for the system zip utility without separating options from operands. The destination archive path and the caller-supplied source paths are passed to the child process with no -- delimiter between them, so any source entry beginning with a hyphen is interpreted by zip as an option rather than a file name. zip accepts -T to test the finished archive and -TT to name the command used to perform that test, so a source list containing those two entries and a command string causes zip to run that command through a shell once the archive has been written. An application that passes a file name or path it received from an untrusted source into the bestzip API therefore executes a command of the supplier's choosing. Versions 2.2.6 and 3.0.2 add the delimiter.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-80427
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 01:15 UTC · Revision 1
Source evidence
bestzip before 2.2.6 and 3.0.x before 3.0.2 Argument Injection via Missing Option Delimiter
core-osv · Original sourcePublished 26 Aug 2026, 15:44 UTC
bestzip builds the argument list for the system zip utility without separating options from operands. The destination archive path and the caller-supplied source paths are passed to the child process with no -- delimiter between them, so any source entry beginning with a hyphen is interpreted by zip as an option rather than a file name. zip accepts -T to test the finished archive and -TT to name the command used to perform that test, so a source list containing those two entries and a command string causes zip to run that command through a shell once the archive has been written. An application that passes a file name or path it received from an untrusted source into the bestzip API therefore executes a command of the supplier's choosing. Versions 2.2.6 and 3.0.2 add the delimiter.
osv:CVE-2026-80427
Complete source record
{
"id": "d8b075bd54eb63d027dbdd976b46d9388a01166c7097b4c8acc38d38b470b0c0",
"url": "https://osv.dev/vulnerability/CVE-2026-80427",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "bestzip before 2.2.6 and 3.0.x before 3.0.2 Argument Injection via Missing Option Delimiter",
"summary": "bestzip builds the argument list for the system zip utility without separating options from operands. The destination archive path and the caller-supplied source paths are passed to the child process with no -- delimiter between them, so any source entry beginning with a hyphen is interpreted by zip as an option rather than a file name. zip accepts -T to test the finished archive and -TT to name the command used to perform that test, so a source list containing those two entries and a command string causes zip to run that command through a shell once the archive has been written. An application that passes a file name or path it received from an untrusted source into the bestzip API therefore executes a command of the supplier's choosing. Versions 2.2.6 and 3.0.2 add the delimiter.",
"evidence": "osv:CVE-2026-80427",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-80427",
"aliases": [
"CVE-2026-80427",
"GHSA-p87m-9567-rgcc"
],
"metrics": [
{
"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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nfriedly/node-bestzip",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "4b301c1111f516f1f6ec7cde1879ed13f3da2244"
},
{
"introduced": "212d87b79ff02a55499b4038cfcdee97c9c6aaa2"
},
{
"fixed": "e1be686b835491033ae2de9069a9874107de11ab"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "2.2.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "3.0.0"
},
{
"fixed": "3.0.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
}
],
"versions": [
"v2.2.5",
"v3.0.1",
"v3.0.0",
"v2.2.4",
"v2.2.3",
"v2.2.2",
"v2.2.1",
"v2.2.0",
"v2.1.7",
"v2.1.6",
"v2.1.5",
"v2.1.4",
"v2.1.3",
"v2.1.2",
"v2.1.1",
"v2.1.0",
"v2.0.0",
"v1.1.6",
"v1.1.5",
"v1.1.4",
"v1.1.3",
"v1.1.2",
"v1.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-80427.json"
}
}
],
"modified": "2026-10-28T02:30:25.114042278Z",
"provider": "osv",
"references": [
"https://www.npmjs.com/package/bestzip",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80427.json",
"https://github.com/nfriedly/node-bestzip/security/advisories/GHSA-p87m-9567-rgcc",
"https://nvd.nist.gov/vuln/detail/CVE-2026-80427",
"https://www.vulncheck.com/advisories/bestzip-before-2.2.6-and-3.0-x-before-3.0.2-argument-injection-via-missing-option-delimiter",
"https://github.com/nfriedly/node-bestzip"
],
"provider_metadata": {
"cwe_ids": [
"CWE-88"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/80xxx/CVE-2026-80427.json"
}
},
"related_cves": [
{
"value": "CVE-2026-80427",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 491516,
"published_at": "2026-08-26T15:44:55.22+00:00"
}