npm-rce-poc (npm) · Malicious Code
Affects npm-rce-pocSource GCVE Database
Malicious package : remove npm-rce-poc and rotate any secrets on hosts that installed it.
Data as of 16 Jul 2026, 14:28 UTC
Malicious package
Published to npm · OSV MAL-2026-7019
What to do
Remove npm-rce-poc 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 |
|---|---|---|
| npmnpm-rce-poc | 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 'npm-rce-poc' version 1.0.13 contains malicious code that executes during installation. It runs a postinstall script that fetches and executes a remote script over unencrypted HTTP from a hardcoded IP address, enabling remote code execution on the installing system. The package masquerades as 'date-fns-lite' to appear benign. Systems with this package installed should be considered fully compromised, and all secrets and keys should be rotated. Removal of the package does not guarantee full remediation due to potential persistent compromise.