Skip to main content
MalwarePublished Updated

react-next-vite (npm) · Malicious Code

Affects react-next-viteSource GCVE Database

0

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

Data as of 26 Oct 2026, 15:56 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-10211

What to do

Remove react-next-vite 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
npmreact-next-viteAffected
  • =1.2.9
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 react-next-vite version 1.2.9 impersonates the pino logger and contains malicious code that spawns a detached child process to fetch and execute remote JavaScript payloads. This payload is retrieved from a mutable IPFS gateway and executed with full access to the Node.js runtime via Function constructor and require. The package also uses base64-encoded URLs hidden in fake environment variables as a second-stage configuration channel, making it a fully weaponized dropper that activates when the module's default export is used.

References

Community reviews

Loading reviews…