Malicious npm package lodash-base-unary — full host compromise; remove and rotate all secrets (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-11-16
GitHub's advisory database published a malware advisory for the npm package lodash-base-unary, flagged under CWE-506 (Embedded Malicious Code). All versions (= 0) are affected and there are no patched versions, meaning the package itself is malware rather than a compromised legitimate library. GitHub warns that any computer with the package installed or running should be considered fully compromised, with potential full control handed to an outside entity, and that removing the package may not remove all malicious software it installed. The package sees roughly 697 downloads per month, so exposure is limited but real. No CVE is assigned; remediation is removal of the package plus rotation of all secrets and keys from a clean machine.
What to do
- Consider any machine where the package was installed or run fully compromised; rotate all secrets and keys immediately from a different, clean computer
- Remove lodash-base-unary from all projects and lockfiles and block it in dependency policies
- Rebuild/reimage affected machines; scan for persistence and additional malicious software
- Audit CI/CD and developer environments for exposure to the package
- Prefer well-known maintained lodash packages and verify dependency provenance
Sources
All live incidents on Threat Watch