# GHSA-q42c-rrp3-r3xm: Malicious Package in commmander

> Malicious npm package commmander executes cryptocurrency miner code upon installation, requiring users to remove it and check for miner processes.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** No
- **Published:** 11 Sep 2020

## What is GHSA-q42c-rrp3-r3xm?

GHSA-q42c-rrp3-r3xm is a vulnerability in commmander, published on 11 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

All versions of `commmander` contain malicious code . The package is malware designed to take advantage of users making a mistake when typing the name of a module to install. Upon require the package attempts to start a cryptocurrency miner using coin-hive.

## Recommendation

Remove the package from your environment and verify whether your system is running the cryptocurrency miner.

## Which versions are affected by GHSA-q42c-rrp3-r3xm?

2 open source packages ship an affected version, including commmander.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `commmander` | npm | All versions | None |
| `commmander` | npm | All versions | None |

## How do I fix GHSA-q42c-rrp3-r3xm?

No fix has been published for GHSA-q42c-rrp3-r3xm yet. Limit exposure of the affected software until one is available.

## Is GHSA-q42c-rrp3-r3xm being exploited?

There is no known exploitation of GHSA-q42c-rrp3-r3xm in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-q42c-rrp3-r3xm and fix it if it is affected.

What it is: GHSA-q42c-rrp3-r3xm is a vulnerability in commmander, published on 11 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of GHSA-q42c-rrp3-r3xm in the wild and no public exploit code.

Affected packages and fixed versions:
- commmander (npm): affected all versions; no fix listed
- commmander (npm): affected all versions; no fix listed

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-q42c-rrp3-r3xm/ (Markdown: https://insights.sbomify.com/GHSA-q42c-rrp3-r3xm/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-q42c-rrp3-r3xm

---
From sbomify Insights: https://insights.sbomify.com/GHSA-q42c-rrp3-r3xm/
Summaries are generated and may contain mistakes; the official description above is the record.
