PT-2020-2799 · Npm · Npm-Programmatic
Published
2020-04-01
·
Updated
2021-07-21
·
CVE-2020-7614
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
npm-programmatic versions 0.0.0 through 0.0.12
All versions of npm-programmatic are affected, but since a range is specified, we prioritize the range provided by Mitre.
Description
The issue is related to Command Injection in the npm-programmatic package. The packages and option properties are concatenated without validation and used directly by the 'exec' function, allowing an attacker to execute arbitrary code by sending a specially crafted malicious package. This may enable attackers to run arbitrary code in the system if the package name passed to the function is user-controlled.
Recommendations
For npm-programmatic versions 0.0.0 through 0.0.12, consider using an alternative package until a fix is made available.
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
XSS
RCE
OS Command Injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Npm-Programmatic