Malicious wp-env npm package — full compromise of installed machines; rotate all secrets (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub published a malware advisory (GHSA-c72p-mfvw-qwg2) for the npm package wp-env, flagged as embedded malicious code (CWE-506). All published versions (= 0) are affected and no patched version exists. GitHub's guidance states that any computer with the package installed or running should be considered fully compromised, with control potentially ceded to an outside entity; removal of the package does not guarantee removal of all malicious software. Anyone who installed or ran wp-env from npm is affected. There is no fix — remediation is host-level incident response: isolate and rebuild machines, remove the package, and rotate all secrets and keys from a clean computer.
What to do
- Treat any machine with wp-env installed or run as fully compromised; isolate it immediately
- Rotate all secrets, keys, tokens and credentials stored on or accessible from affected machines, from a clean computer
- Remove the wp-env package and rebuild/reimage affected systems rather than trusting cleanup
- Audit npm lockfiles and CI environments for wp-env and block its installation
- Review logs and network activity for signs of exfiltration or attacker access
Sources
All live incidents on Threat Watch