GitHub Advisoryadvisory · npm

GHSA-426h-24vj-qwxf Command Injection in npm-programmatic

CRITICAL Published 2020-04-23 Modified 2021-07-29 Official page ↗
Aliases
CVE-2020-7614
Ecosystem
npm
Packages
npm-programmatic
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-20, CWE-78
Reviewed
2020-04-23

Affected packages

• npm npm-programmatic: <= 0.0.12 (no fix yet)

Description

All versions of `npm-programmatic ` are vulnerable to Command Injection. The package fails to sanitize input rules and passes it directly to an `exec` call on the `install`, `uninstall` and `list` functions . This may allow attackers to execute arbitrary code in the system if the package name passed to the function is user-controlled. Recommendation No fix is currently available. Consider using an alternative package until a fix is made available.

Related

Alias · CVE (1)

  • CVE-2020-7614 npm-programmatic through 0.0.12 is vulnerable to Command Injection.The packages and option properties are concatenated together without any… vulnerability

Weakness · CWE (2)

  • CWE-20 Improper Input Validation weakness
  • CWE-78 Improper Neutralization of Special Elements used in an OS Command weakness

References