Skip to main content
MalwarePublished

devplatform-react-hooks (npm) · Malicious Code

Affects devplatform-react-hooksSource GCVE Database

0

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

Data as of 5 Aug 2026, 16:36 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-12736

What to do

Remove devplatform-react-hooks 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
npmdevplatform-react-hooksAffected
  • =35.5.7
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 devplatform-react-hooks version 35.5.7 contains malicious code that downloads and executes a platform-specific binary from dynamically constructed Cloudflare Workers hostnames and a DNS-TXT fallback domain. The binary is saved to a disguised path with executable permissions and launched detached from the main process. The package misleadingly claims to perform telemetry functions and provides environment variables to opt out of telemetry, but actually executes opaque native code at import time. A secondary module with similar behavior exists but is not invoked from the main entry point.

References

Community reviews

Loading reviews…