CVE-2020-7614
JavaScript vulnerability analysis and mitigation

Overview

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.

Technical details

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

Impact

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

Mitigation and workarounds

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

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management