Skip to main content
← All vulnerabilities
CVE-2020-7602GHSA-F8FH-8RGM-227HSNYK-JS-NODEPROMPTHERE-560115

node-prompt-here through 1.0.1 allows execution of arbitrary commands.

Published
Last modified
published
Not listed in CISA KEV
1 proof of concept on GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • n/a node-prompt-here

    All versions including 1.0.1

  • node-prompt-herenpm

    through 1.0.1

References 2

snyk.io

GitHub · dannyEndorTest/node-prompt-here