neverthrow-js (npm) · Malicious Code
Affects neverthrow-js (WordPress plugin)Source GCVE Database
Malicious package : remove neverthrow-js and rotate any secrets on hosts that installed it.
Data as of 10 Aug 2026, 15:43 UTC
Malicious package
Published to npm · OSV MAL-2026-13706
What to do
Remove neverthrow-js 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 |
|---|---|---|
| npmneverthrow-js | 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 package neverthrow-js@2.0.0 is a malicious typosquat of the legitimate neverthrow library on npm. It contains a postinstall script that executes automatically during installation, which fetches and executes a remote payload with full Node.js capabilities. The malicious code hides its command and control (C2) URL by reconstructing it from decoy arrays mimicking WordPress plugin metadata. Execution of the payload is delayed until a specific date in 2026. The package attempts to appear legitimate by reproducing the real neverthrow library code alongside the malicious install hook.