CVE-2020-7614: Command Injection in npm-programmatic

npm-programmatic Updated 02 Oct 2025

Summary

23/04/2020
No i
Critical
9.8

CVE-2020-7614: Command Injection in npm-programmatic. Affects npm-programmatic versions < 0.0.12. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

npm-programmatic is an npm package that provides a programmatic API for managing npm packages. It allows developers to install, uninstall, and list packages directly from their Node.js applications. This package is vulnerable to a command injection vulnerability, which occurs when user-controlled input is not properly sanitized and is passed directly to an exec call on the install, uninstall, and list functions. This vulnerability can potentially allow attackers to execute arbitrary code on the system.

Vulnerability Detail

The command injection vulnerability in npm-programmatic arises from the lack of input sanitization. When user-controlled input is passed to the install, uninstall, or list functions, it is not properly validated or sanitized. This allows an attacker to inject malicious commands that will be executed by the underlying operating system. The impact of this vulnerability can be severe, as it grants unauthorized access and control over the system, potentially leading to data breaches, unauthorized code execution, or further compromise of the system.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As there is no fix available, a possible workaround is to manually sanitize and validate user input before passing it to the affected functions. This can be done by implementing input validation and sanitization techniques, such as whitelisting allowed characters or using input validation libraries. However, it is crucial to note that this workaround may not provide complete protection and should only be considered as a temporary measure until an official fix is released.

Conclusion

The npm-programmatic package is vulnerable to a command injection vulnerability that allows attackers to execute arbitrary code on the system. Currently, no fix is available, and it is recommended to use an alternative package until a fix is released. Regularly monitoring official sources for updates and applying the official fix once available is crucial to ensure the security of your application. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for npm-programmatic →

Share this vulnerability

FAQ

npm-programmatic is an npm package that provides a programmatic API for managing npm packages directly from Node.js applications.

Command injection is a vulnerability that occurs when untrusted user input is passed to a command execution function without proper validation or sanitization. This allows an attacker to execute arbitrary commands on the underlying system.

The impact of this vulnerability can be severe, as it allows attackers to execute arbitrary code on the system. This can lead to unauthorized access, data breaches, and further compromise of the affected system.

No, there is currently no fix available for this vulnerability. It is recommended to use an alternative package until a fix is released.

As a temporary measure, you can manually sanitize and validate user input before passing it to the affected functions. However, this may not provide complete protection, and it is crucial to monitor official sources for updates and apply the official fix once it becomes available.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback