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-2017-16194 Vulnerability in npm package picard
CVE-2021-41109 Vulnerability in npm package parse-server
CVE-2023-35165 Vulnerability in npm package @aws-cdk/aws-eks
CVE-2021-46384 Vulnerability in maven package net.mingsoft:ms-mcms
CVE-2013-2251 Vulnerability in maven package org.apache.struts:struts2-core