react-cache-hook (npm): malicious package compromises any machine where it is installed; no safe version exists
Severity: critical · Patch status: no-fix-needed · Since 2026-11-18
GitHub's advisory database published GHSA-pjx5-g5xc-q286 on 2026-11-18 flagging the npm package react-cache-hook as malware (CWE-506, embedded malicious code). Every published version (= 0) is affected and there are no patched versions, so any installation grants attackers full control of the machine. The advisory states computers running the package should be considered fully compromised and that removal does not guarantee removal of all malicious software. Reach appears limited (~320 downloads/month), but any developer or CI environment that installed it is assumed compromised. No fix exists; remediation is removal plus full incident response.
What to do
- Rotate all secrets, keys, and credentials that were on any machine where react-cache-hook was installed, using a clean machine
- Audit npm lockfiles and CI caches for react-cache-hook and remove it everywhere
- Rebuild/reimage affected developer machines and CI runners; do not trust removal alone
- Review logs and network traffic for signs of exfiltration or attacker access
- Block the package in npm/registry policy and dependency scanning going forward
Sources
All live incidents on Threat Watch