Skip to main content
MalwarePublished Updated

params-valid-js (npm) · Malicious Code

Affects params-valid-jsSource GCVE Database

0

Malicious package : remove params-valid-js and rotate any secrets on hosts that installed it.

Data as of 8 Sep 2026, 11:38 UTC

Classification

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

ProductAffectedFixed in
npmparams-valid-jsAffected
  • =1.0.0
  • =1.0.3
  • =1.0.1
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.

References

Community reviews

Loading reviews…