Malware in lib-d (npm): any installed version fully compromises host; no safe version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub published a malware advisory (GHSA-6r74-qw78-5vqp) for the npm package lib-d on 2026-12-01. Every version (= 0) is classified as embedded malicious code (CWE-506) with no patched version available, meaning any installation is malicious by design. The advisory states that any computer with the package installed or running should be considered fully compromised, with control potentially ceded to an outside actor; secrets and keys on affected machines must be treated as stolen. There is no safe version to upgrade to — the only remediation is removal of the package plus host forensics and credential rotation. Anyone who installed lib-d from npm is affected; no fixed version exists.
What to do
- Treat any machine with lib-d installed as fully compromised; rotate all secrets, keys, and credentials from a clean machine
- Remove lib-d from all projects, lockfiles, and CI caches; audit dependencies for it
- Rebuild or reimage affected hosts; investigate for persistence and exfiltration
- Block/flag lib-d in internal registries and dependency scanning
- Review npm install logs to determine exposure window
Sources
All live incidents on Threat Watch