Packages / react-hook-form / Security

Malicious packageMAL-2026-2853GHSA-w8j3-qvc3-h56fPublished 18 Apr 2026

Malicious code in react-hook-form (npm)

Your version

Compromised versions · react-hook-form

  • 7.73.0

Safe

Every other versionincluding the latest, 7.91.0

npm install react-hook-form@7.91.0
  1. Not affected

    0.0.12 – 7.72.1

    574 releases

  2. Affected

    7.73.0

    1 release

  3. Safe

    7.73.1 – 7.91.0

    20 releases, latest

595 stable releases of react-hook-form, oldest to newest.

What happens

If one of these versions was installed

  1. Treat the machines and CI runners that installed it as compromised.
  2. Rotate the npm, GitHub and cloud tokens they could reach.
  3. 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.