Malicious Package in commander-js

commander-js Updated 02 Oct 2025

Summary

02/09/2020
CRITICAL
No i
Critical
9.8

GHSA-2hqf-qqmq-pgpp: Malicious Package in commander-js. Affects commander-js versions >= 0.0.0. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The commander-js package is an npm package used for building command-line interfaces (CLIs) in JavaScript. It provides a simple and intuitive API for creating command-line programs. However, all versions of commander-js are considered malicious. The package is designed to take advantage of users making a mistake when typing the name of a module to install. When installed, the package downloads an arbitrary file and executes its contents as a post-install script.

Vulnerability Detail

The vulnerability in commander-js arises from the package being intentionally designed as malware. When users mistakenly install this package, it can compromise the system by downloading and executing arbitrary files. This can lead to unauthorized access, data breaches, and potential damage to the compromised machine. The severity of this vulnerability is critical, with a CVSS score of 9.8.

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

There is no specific workaround mentioned for this vulnerability. However, ensuring that the commander-js package is not installed and regularly updating and patching all software components can help mitigate the risk of such malicious packages.

Conclusion

The commander-js package has been identified as a malicious package that can compromise systems when mistakenly installed. It is crucial to ensure that the package is not present in your environment and to assess the impact if found. Strengthening security practices and regularly updating software components can help mitigate the risk of such vulnerabilities. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for commander-js →

Share this vulnerability

FAQ

commander-js is an npm package used for building command-line interfaces (CLIs) in JavaScript. It provides a simple and intuitive API for creating command-line programs.

The vulnerability in commander-js occurs when users mistakenly install the package, which is designed as malware. It downloads and executes arbitrary files, compromising the system.

The potential consequences of this vulnerability include unauthorized access, data breaches, and potential damage to the compromised machine.

This vulnerability is classified as critical, with a CVSS score of 9.8.

If you find the commander-js package installed, it is recommended to consider the system compromised. Assess the impact and take appropriate response measures, such as rotating all credentials found on the compromised machine.

Related vulnerabilities

Recent vulnerabilities recorded for commander-js.

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