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-2020-23811 Vulnerability in maven package com.xuxueli:xxl-job
CVE-2022-46175 Vulnerability in maven package org.webjars.npm:json5
CVE-2020-36649 Vulnerability in maven package org.webjars.npm:papaparse
CVE-2021-46704 Vulnerability in npm package genieacs
CVE-2018-19056 Vulnerability in maven package org.webjars.bowergithub.pandao:editor.md