
Cloud Vulnerability DB
A community-led vulnerabilities database
npm-programmatic through version 0.0.12 is vulnerable to Command Injection. The vulnerability exists because the packages and option properties are concatenated together without proper validation before being used by the exec function directly (Snyk, NVD). The vulnerability was discovered and disclosed on April 1, 2020.
The vulnerability occurs when the package concatenates user input without proper sanitization before passing it to the exec function. This allows attackers to inject arbitrary shell commands. A proof of concept demonstrates that an attacker can execute malicious commands by passing specially crafted input to the install function: var root = require("npm-programmatic"); var attack_code = "& echo vulnerable > create.txt &"; root.install([attack_code], {"cwd": "./"}); (Snyk).
This vulnerability can lead to remote code execution if the library is called with untrusted input. An attacker could potentially execute arbitrary commands on the system where the vulnerable code is running (Snyk).
There is no fixed version available for npm-programmatic. Users should consider using alternative packages or implementing proper input validation and sanitization before passing any user-controlled data to the package (Snyk).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."