GitHub Advisoryadvisory · npm

GHSA-2hqf-qqmq-pgpp Malicious Package in commander-js

CRITICAL Published 2020-09-02 Modified 2021-10-01 Official page ↗
Ecosystem
npm
Packages
commander-js
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-506
Reviewed
2020-08-31

Affected packages

• npm commander-js: >= 0.0.0 (no fix yet)

Description

All versions of `commander-js` are considered malicious. The package is malware 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. Recommendation This package is not available on the npm Registry anymore. If you happen to find this package in your environment you should consider the system it was installed on compromised and assess if further response (such as rotating all credentials found on the compromised machine) is necessary.

Related

Weakness · CWE (1)

  • CWE-506 Embedded Malicious Code weakness

References