js-soul (npm) · Malicious Code
Affects js-soulSource GCVE Database
Malicious package : remove js-soul and rotate any secrets on hosts that installed it.
Data as of 10 Sep 2026, 18:48 UTC
Malicious package
Published to npm · OSV MAL-2026-14477
What to do
Remove js-soul 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 |
|---|---|---|
| npmjs-soul | 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 'js-soul' version 1.0.4 contains malicious code that executes arbitrary JavaScript during module import. It reads and DES-decrypts a file disguised as an image outside the package directory using a hardcoded key, then spawns a detached Node.js process to run the decrypted code. This behavior contradicts the package's stated purpose and README claims, allowing attacker-controlled code to run with the installer's privileges.