params-valid-js (npm) · Malicious Code
Affects params-valid-jsSource GCVE Database
Malicious package : remove params-valid-js and rotate any secrets on hosts that installed it.
Data as of 8 Sep 2026, 11:38 UTC
Malicious package
Published to npm · OSV MAL-2026-5988
What to do
Remove params-valid-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 |
|---|---|---|
| npmparams-valid-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 npm package 'params-valid-js' impersonates the legitimate 'request' package but contains malicious code that executes attacker-controlled Node.js code. Its middleware export spawns a detached child process running a script that fetches remote code and executes it with full module access, enabling remote code execution. This is a supply-chain attack affecting specific versions of the package.