init-js-examples (npm) · Malicious Code
Affects init-js-examplesSource GCVE Database
Malicious package : remove init-js-examples and rotate any secrets on hosts that installed it.
Data as of 22 Jul 2026, 23:50 UTC
Malicious package
Published to npm · OSV MAL-2026-10996
What to do
Remove init-js-examples 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
| Product | Affected | Fixed in |
|---|---|---|
| npminit-js-examples | Affected
| 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 'init-js-examples' version 1.0.0 contains malicious code that executes during the postinstall lifecycle hook. This code opens a TCP connection to a hardcoded remote IP address and connects it to a shell process, effectively granting the remote endpoint interactive shell access. This results in full remote code execution and establishes a persistent backdoor on the host where the package is installed.