Skip to main content
MalwarePublished

hubert-react-query (npm) · Malicious Code

Affects hubert-react-querySource GCVE Database

0

Malicious package : remove hubert-react-query and rotate any secrets on hosts that installed it.

Data as of 6 Aug 2026, 19:28 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12181

What to do

Remove hubert-react-query 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

ProductAffectedFixed in
npmhubert-react-queryAffected
  • =20.6.8
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The npm package hubert-react-query version 20.6.8 contains malicious code that executes automatically upon import. It reconstructs attacker-controlled Cloudflare Workers hostnames at runtime to download a platform-specific native binary, which it writes to temporary directories, sets executable permissions, and executes detached from the parent process. This binary is unrelated to the package's advertised functionality and effectively compromises any system running the package. Immediate removal and secret/key rotation are strongly advised.

References

Community reviews

Loading reviews…