Malicious npm package ms-graph-client — full system compromise on install; rotate all secrets
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub published advisory GHSA-w7cx-hcjj-6wvv on 2026-12-01 flagging the npm package ms-graph-client 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 full control potentially handed to an outside entity. The package has very low reach (~14 downloads/month, 834 GitHub stars listed in the advisory metadata), limiting blast radius, but any installation means credential and secret theft should be assumed. Removal of the package does not guarantee removal of all malicious software. No fix is possible; the package must be removed and all secrets on affected machines rotated from a clean computer.
What to do
- Treat any machine with ms-graph-client installed as fully compromised; isolate it
- Rotate all secrets, keys, and credentials stored on or accessible from affected machines, from a clean computer
- Remove the package and rebuild/reimage affected systems; do not assume removal cleans the machine
- Audit npm lockfiles and CI environments for ms-graph-client and review access logs for signs of attacker activity
- Block the package in internal registries and dependency scanning policies
Sources
All live incidents on Threat Watch