rmraf npm package is malware — full machine compromise, no safe version
Severity: critical · Patch status: no-fix-needed · Since 2026-11-19
GitHub published advisory GHSA-mr2f-4c3p-9j9w on 2026-11-19 flagging the npm package rmraf as malware (CWE-506, embedded malicious code). Every version (= 0) is affected and no patched version exists, so the package cannot be safely used at all. GitHub's guidance states any computer with the package installed or running should be considered fully compromised, implying attacker control of the machine and access to secrets and keys. The package had roughly 1,426 monthly downloads and 18 dependent repositories, so downstream projects and CI environments may be affected. Removal of the package alone is not guaranteed to remove all malicious software planted during installation. There is no fix; remediation is incident response: rotate credentials and rebuild affected systems.
What to do
- Rotate all secrets, keys, and credentials that existed on any machine where rmraf was installed, using a clean machine
- Remove rmraf from all projects, lockfiles, and CI pipelines and audit for other malicious dependencies
- Rebuild/reimage affected machines and CI runners rather than trusting cleanup
- Audit logs and network traffic for signs of exfiltration or attacker access
- Pin dependencies and add malware/scanning checks to prevent reintroduction
Sources
All live incidents on Threat Watch