react-cache-hook (npm) · Malicious Code
Affects react-cache-hookSource GCVE Database
Malicious package : remove react-cache-hook and rotate any secrets on hosts that installed it.
Data as of 18 Nov 2026, 16:52 UTC
Malicious package
Published to npm · OSV MAL-2026-20130
What to do
Remove react-cache-hook from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmreact-cache-hook | Affected– | Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The react-cache-hook npm package contains malicious code that compromises any computer on which it is installed or running. This compromise potentially grants full control to an outside entity, risking exposure of all secrets and keys stored on the affected system. Immediate removal of the package and rotation of all secrets from a different, uncompromised machine is strongly advised.