Packages / react-hook-form / Security
Malicious code in react-hook-form (npm)
Compromised versions · react-hook-form
- 7.73.0
Safe
Every other versionincluding the latest, 7.91.0
npm install react-hook-form@7.91.0Not affected
0.0.12 – 7.72.1
574 releases
Affected
7.73.0
1 release
Safe
7.73.1 – 7.91.0
20 releases, latest
What happens
If one of these versions was installed
- Treat the machines and CI runners that installed it as compromised.
- Rotate the npm, GitHub and cloud tokens they could reach.
- Reinstall from a lockfile that pins a version outside the list.
-= Per source details. Do not edit below this line.=-
Source: amazon-inspector (17ae372e5061ef357237d48a7812ca65bbc3a49b8a57153df5812d17e9d8eeaa)
The package react-hook-form was found to contain malicious code.
Source: ghsa-malware (5aa9ba7a4ea0b89453bdd073b8ffb80b6e3baab6684d5652a1e898c2bacb5a66)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.