react-next-dom@1.1.7
Malicious code in react-next-dom (npm)
Analysis
react-next-dom@1.1.7 is a remote-code-execution trojan. It spawns a detached child process (index.js spawns caller.js with detached:true) that fetches arbitrary JavaScript from jsonkeeper[.]com/b/XRGF3 via axios, then executes it with full Node require access through new Function.constructor('require', payload). The target URL and request headers are base64-obfuscated in a fake process.env block. A 5-attempt retry loop ensures payload delivery survives transient network issues. The package name combosquats React/Next.js branding; publisher uses a temp-mail domain (ellbit[.]com); description is generic copy-paste unrelated to the code. The package depends on axios (the C2 transport) and sqlite3 (whose native build failure caused the install to fail before the payload could run — the malicious code in caller.js is otherwise fully wired).
- analyzed by
- Leitwacht
- first seen
- Jun 13, 2026, 12:23 AM
- analyzed
- Jun 13, 2026, 12:25 AM
Related advisories
- node-pino@2.3.2
- chai-utils-test@4.5.4
- autotel-mongoose@2.0.5
- autotel-mongoose@3.0.1
- autotel-mongoose@6.0.1
- autotel-mongoose@4.0.1
- autotel-mongoose@5.0.2
- autotel-mongoose@1.0.2
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.