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
- warp-dependency@1.0.0
- @wacrot/infra-data-kit@2.1.4
- react-emits@1.0.5
- theta-connector@1.0.0
- chalk-pro@7.0.4
- richtext-editor-ui@1.0.0
- rapidsearch@1.1.0
- qbo-ui-services@45.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.