Skip to main content
MalwarePublished Updated

react-next-dom (npm) · Malicious Code

Affects react-next-domSource GCVE Database

0

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

Data as of 12 Sep 2026, 21:16 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-6825

What to do

Remove react-next-dom 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-domAffected
  • =17.2.7
  • =1.1.7
  • =17.2.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 react-next-dom is a malicious package masquerading as a legitimate React/Next.js ecosystem library. It contains a hidden remote code loader that fetches and executes attacker-controlled JavaScript code with full Node.js require access, enabling arbitrary code execution. The package uses a detached child process to load payloads from an anonymous public paste service, allowing the attacker to modify the executed code at will. This compromises any system that installs or runs the package, potentially exposing all stored secrets and keys. Immediate removal and secret rotation are strongly recommended.

References

Community reviews

Loading reviews…