LWA-2026-4379 MAL-2026-5988 ↗ confirmed malware

params-valid-js@1.0.3

Malicious code in params-valid-js (npm)

T1195.002 · Compromise Software Supply ChainT1059.007 · JavaScriptT1105 · Ingress Tool TransferT1071.001 · Web Protocols

Analysis

params-valid-js@1.0. The package copies the entire 'request' HTTP library as cover (README, request.js, lib/*.js) but injects a hidden implant: index.js spawns a detached child node process running lib/callers.js, which does an HTTP GET to a remote host and executes the response's Cookie field as arbitrary JavaScript via new Function.constructor("require", s). The callers.js file uses a locally-scoped 'process' constant that shadows the real process.env to evade static analysis. The detached spawn (child.unref()) prevents the installer from observing the child's failure. No lifecycle hooks are needed — the implant activates when the package is required as middleware.

analyzed by
Leitwacht
first seen
Jun 11, 2026, 06:01 PM
analyzed
Jun 11, 2026, 06:02 PM

Related advisories

browse all confirmed advisories →

Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.