Malicious npm package classnames-25 — full host compromise on install; no safe version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-12-03
GitHub's advisory database published GHSA-86g7-wm77-mf37 on 2026-12-03 flagging the npm package classnames-25 as malware (CWE-506, Embedded Malicious Code). All versions (= 0) are affected and no patched version exists. The advisory states any computer with the package installed or running should be considered fully compromised, with control potentially handed to an outside entity; secrets and keys on affected machines must be rotated. The package is a typosquat-style lookalike of the popular classnames library and sees roughly 53 downloads per month, so exposure is limited but real. Removal of the package does not guarantee removal of the malicious software. No fix is possible; the only remediation is removal plus host forensics and credential rotation.
What to do
- Immediately remove classnames-25 from all projects and lockfiles and block it in your registry/proxy
- Treat every machine that installed or ran it as fully compromised: rotate all secrets, keys, and tokens from a clean machine
- Rebuild affected systems from trusted images and run forensics for persistence mechanisms
- Audit dependency trees for similar typosquat packages and pin reviewed versions
- Verify CI/CD and developer machines for residual malicious software before resuming builds
Sources
All live incidents on Threat Watch