Description
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.
Remediation
References
https://snyk.io/vuln/SNYK-JS-NODEPROMPTHERE-560115
Related Vulnerabilities
CVE-2023-34464 Vulnerability in maven package org.xwiki.platform:xwiki-platform-web-templates
CVE-2017-1000427 Vulnerability in maven package org.webjars:marked
CVE-2018-3721 Vulnerability in maven package org.webjars.npm:lodash
CVE-2022-27260 Vulnerability in npm package buttercms
CVE-2023-34610 Vulnerability in maven package com.cedarsoftware:json-io