OpenSSF/OSV advisory MAL-2026-2798 confirms this npm version as malicious. request-easy-validator impersonates the popular `request` package (cloned README, bugs URL points at github.com/request/request, source is a fork of `request`) and ships a hidden remote-code-execution dropper. index.js exports a `middleware` function (also exposed as default, `.reqValidator`, and `.request`) that, on any invocation by the consumer, spawns a detached `node lib/callers.js` child with `stdio: 'ignore'`...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in request-easy-validator (npm)
Details
request-easy-validator impersonates the popular `request` package (cloned README, bugs URL points at github.com/request/request, source is a fork of `request`) and ships a hidden remote-code-execution dropper. index.js exports a `middleware` function (also exposed as default, `.reqValidator`, and `.request`) that, on any invocation by the consumer, spawns a detached `node lib/callers.js` child with `stdio: 'ignore'` and `child.unref()` to hide it from the parent process. lib/callers.js then issues an HTTPS GET to https://jsonkeeper.com/b/PWEH9 (an anonymous, mutable, attacker-controlled paste host) with header `x-secret-key: _`, takes the `.Cookie` field from the response, and passes it to `new Function.constructor('require', s)` invoked with the live `require` — granting the paste-host operator arbitrary Node.js code execution with full module access on any server using this package. The payload URL is mutable, so the attacker can change the executed code at any time without republishing the package.
Decision reason
OpenSSF Malicious Packages via OSV confirms request-easy-validator@1.0.7 as malicious (MAL-2026-2798): Malicious code in request-easy-validator (npm)