Malicious npm package escompat — full system compromise; no safe version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-12-01
GitHub published advisory GHSA-v8h8-cq7p-3535 on 2026-12-01 flagging the npm package escompat as malware. Every published version (= 0) contains embedded malicious code (CWE-506) and no patched version exists. The advisory states that any computer with the package installed or running should be considered fully compromised, meaning attackers may have obtained full control, including access to secrets and keys. No source code repository is known for the package. Any developer or CI environment that installed escompat is affected; removal of the package alone cannot be assumed to remove all malicious software.
What to do
- Rotate all secrets, keys, and credentials stored on or accessible from any machine where escompat was installed, using a clean machine
- Remove escompat from all projects, lockfiles, and caches
- Rebuild or wipe affected machines and CI runners; do not assume package removal fully removes the malware
- Audit logs and network traffic for signs of compromise or exfiltration
- Block escompat in dependency policies and check transitive dependencies for it
Sources
All live incidents on Threat Watch