AploSec / Disclosures / CVE-2026-110639
@mborne/extract before 0.2.1 OS Command Injection via archivePath and targetDir
CVE-2026-110639 · published 2026-10-14
Summary
@mborne/extract before 0.2.1 contains an OS command injection vulnerability that allows attackers to execute commands by supplying shell metacharacters in archivePath or targetDir options. Attackers controlling these values passed to extract() can inject commands into unquoted shelljs exec() strings in the unzip, 7z, tar-bz2 and gz extractors, running them with Node.js process privileges.
Evidence
The exploit was run against the published artifact from the registry, not the repository. It created a marker file; a benign input through the same sink in the same session did not.
Remediation
Upgrade @mborne/extract to 0.2.1 or later.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/mborne-extract-before-0.2.1-os-command-injection-via-archivepath-and-targetdir
- Fix pull requesthttps://github.com/mborne/node-extract/pull/8
- Vulnerable codehttps://github.com/mborne/node-extract/blob/v0.2.0/src/extractor/unzip.js#L17-L19
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-110639
- Package
- @mborne/extract
- Ecosystem
- npm
- Weekly downloads
- 3
- Affected
- < 0.2.1
- Fixed
- 0.2.1
- Weakness
- CWE-78
- CNA
- VulnCheck
- Credit
- Zachariah Mithani