OpenSSF/OSV advisory MAL-2026-2526 confirms this npm version as malicious. Copy of 'request' library with injected payload. Spawns detached child process that fetches stage-2 and executes via new Function.constructor('require', payload). Same pattern as express-session-js.
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in request-js-validator (npm)
Details
Copy of 'request' library with injected payload. Spawns detached child process that fetches stage-2 and executes via new Function.constructor('require', payload). Same pattern as express-session-js.
---
## Source: amazon-inspector (2d5a657a9a3d02a6e081dad40434d93af76f1015495e2fddb11328d88f453063) The package request-js-validator was found to contain malicious code.
## Source: ghsa-malware (a943c6f68b9badd203b85e98b4997b5f5dfb750e15f13e8f8393e7094b0d4de0) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Decision reason
OpenSSF Malicious Packages via OSV confirms request-js-validator@1.0.3 as malicious (MAL-2026-2526): Malicious code in request-js-validator (npm)