Description
@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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
mborne @mborne/extract
Default version status: unaffected
0 to < 0.2.1affected
pkg:npm/%40mborne/extractReferences
- https://github.com/mborne/node-extract/pull/8 ↗
- https://github.com/mborne/node-extract/commit/585e5b29657379e73c04f6f950ea8dc5319f8ae1 ↗
- https://github.com/mborne/node-extract/releases/tag/v0.2.1 ↗
- https://github.com/mborne/node-extract/blob/v0.2.0/src/extractor/unzip.js#L17-L19 ↗
- https://www.vulncheck.com/advisories/mborne-extract-before-0.2.1-os-command-injection-via-archivepath-and-targetdir ↗