Vulnerability · Published Mar 15, 2020 · Assigned by snyk

CVE-2020-7602

Critical 9.8

In plain English

A critical-severity security flaw in node-prompt-here. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.7% (higher than 86% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)2.7%top 14.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack tooling1Public PoC

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmnode-prompt-hereno fix listedGHSA-f8fh-8rgm-227h

Affected products (as reported)

VendorProductVersions
n/a node-prompt-here All versions including 1.0.1

References