CVE-2020-7602: node-prompt-here - Command Injection
- Cve: CVE-2020-7602
- Name: node-prompt-here - Command Injection
- 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.
- Impact: Attackers can execute arbitrary commands on the system, potentially leading to full system compromise.
- Remediation: Update to the latest version of node-prompt-here that addresses this vulnerability or apply appropriate input sanitization.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.0267
- Epss percentile: 0.86132
- Assignee: [email protected]
- Published at: 2020-03-15T22:15:14Z
- Age in days: 2445
- Modified at: 2026-06-17T03:25:06Z
- Public exploits total: 2
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-7602
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://snyk.io/vuln/SNYK-JS-NODEPROMPTHERE-560115 | nvd | 2020-03-15 |
| https://github.com/dannyEndorTest/node-prompt-here | poc-in-github | 2026-05-20 |
References
| Url | Source | Tags |
|---|---|---|
| https://snyk.io/vuln/SNYK-JS-NODEPROMPTHERE-560115 | nvd | Exploit, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| node-prompt-here_project:node-prompt-here | <= 1.0.1 | no | nvd | /v1/products/node-prompt-here_project/node-prompt-here |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| s-a/node-prompt-here | product | yes | /v1/repositories/s-a/node-prompt-here |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 2
- Public exploit first date: 2020-03-15
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts