matrix-lite npm package is malware — full machine compromise, no safe version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub's advisory database published GHSA-mrmg-m523-qqq5 on 2026-12-01 flagging the npm package matrix-lite as embedded malicious code (CWE-506). All versions (= 0) are affected and no patched version exists. GitHub's guidance states any computer with the package installed or running should be considered fully compromised, with full control potentially handed to an outside entity, so removal of the package alone cannot be assumed to remove all malicious software. Reach appears limited (~53 downloads/month), but every installation is treated as compromised. The only remediation is removal plus full incident response: rotate all secrets and keys from a clean machine and rebuild affected systems.
What to do
- Treat any machine where matrix-lite was installed or run as fully compromised
- Rotate all secrets, keys, and credentials stored on affected machines, from a different clean computer
- Remove the package and rebuild/reimage affected systems rather than trusting cleanup
- Audit for persistence mechanisms and lateral movement from affected hosts
- Block matrix-lite in dependency allowlists and CI pipelines
Sources
All live incidents on Threat Watch