GHSA-f8fh-8rgm-227h

Suggest an improvement
Source
https://github.com/advisories/GHSA-f8fh-8rgm-227h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-f8fh-8rgm-227h/GHSA-f8fh-8rgm-227h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f8fh-8rgm-227h
Aliases
Published
2021-05-07T16:16:16Z
Modified
2026-07-08T06:49:35Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
OS Command Injection in node-prompt-here
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-78"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-05-03T21:44:33Z",
    "nvd_published_at":  "2020-03-15T22:15:00Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / node-prompt-here

Package

Name
node-prompt-here
View open source insights on deps.dev
Purl
pkg:npm/node-prompt-here

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
1.0.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-f8fh-8rgm-227h/GHSA-f8fh-8rgm-227h.json"