ADVISORIES

GitHub Advisory Database

GHSA-f8fh-8rgm-227h

OS Command Injection in node-prompt-here

Critical No fix available CVE-2020-7602SNYK-JS-NODEPROMPTHERE-560115

Details

node-prompt-here through 1.0.1 allows execution of arbitrary commands. The runCommand() is called by getDevices() function in file linux/manager.js, which is required by the index. process.env.NM_CLI in the file linux/manager.js. This function is used to construct the argument of function execSync(), which can be controlled by users without any sanitization.

Affected packages

EcosystemPackageAffected versions
npmnode-prompt-here
All versions up to and including 1.0.1

References