Skip to content
Threat Feed
critical advisory

OS Command Injection in @mborne/extract

The @mborne/extract library before version 0.2.1 is vulnerable to OS command injection via unsanitized archivePath or targetDir inputs passed to shelljs exec().

CVE search metadata

CVE search record: CVE-2026-110639. Severity: critical. CVSS: 9.8. KEV: no. Product: @mborne/extract (< 0.2.1). Brief: OS Command Injection in @mborne/extract. Brief link: https://feed.craftedsignal.io/briefs/2026-10-mborne-extract-rce/

The @mborne/extract Node.js library contains an OS command injection vulnerability, identified as CVE-2026-110639, affecting all versions prior to 0.2.1. The vulnerability stems from improper input validation when handling the 'archivePath' or 'targetDir' options. These parameters are passed directly into 'shelljs.exec()' calls within the library's internal extractors (unzip, 7z, tar-bz2, and gz) without sufficient sanitization.

If a downstream application accepts user-supplied input and passes it into the extract() function, an attacker can supply shell metacharacters to escape the intended command context and execute arbitrary system commands. Because these processes run with the privileges of the underlying Node.js application, this vulnerability poses a significant risk for remote code execution (RCE) in any environment utilizing vulnerable versions of the package.

Impact

Successful exploitation allows for arbitrary command execution on the host system running the Node.js application. This potentially leads to full system compromise, data exfiltration, or lateral movement within the network, depending on the permissions of the user account running the Node.js process. The CVSS v3.1 base score is 9.8, reflecting the high potential for total system compromise without authentication.

Recommendation

  • Upgrade the @mborne/extract library to version 0.2.1 or later immediately.
  • Review all application code paths where user-supplied input is passed to the extract() function to ensure no untrusted content can influence file paths.
  • Apply the principle of least privilege by running the Node.js service account with the minimum necessary filesystem and shell access permissions.

Immediate actions

Upgrade @mborne/extract to 0.2.1 or later

IT Operations 24h

Mitigations

Upgrade @mborne/extract to 0.2.1 or later

immediate IT Operations

CVE-2026-110639