Malicious code in request-js-validator (npm)
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. --- _-= Per source details. Do not edit below this line.=-_ ## 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.
AI Analysis
Technical Summary
The 'request-js-validator' npm package versions 1.0.2, 1.0.3, and 1.0.4 contain malicious code that replicates the legitimate 'request' library but injects a payload that spawns a detached child process. This process fetches a second-stage payload and executes it using JavaScript's Function constructor with 'require', enabling arbitrary code execution. This behavior mirrors previously observed malicious patterns such as those in 'express-session-js'. The package effectively compromises any system on which it is installed or executed, granting attackers full control and access to sensitive information.
Potential Impact
Systems with the affected versions of 'request-js-validator' installed or running are fully compromised. Attackers gain the ability to execute arbitrary code remotely, potentially accessing or exfiltrating all secrets and keys stored on the system. The compromise is severe enough that simply removing the package may not eliminate all malicious components, necessitating credential rotation and potentially full system remediation.
Mitigation Recommendations
No official patch or fix is available for this malicious package. Immediate removal of the 'request-js-validator' package versions 1.0.2, 1.0.3, and 1.0.4 is required. All secrets and keys on the compromised system should be rotated from a separate, trusted environment. Due to the high risk of persistent compromise, consider rebuilding the affected systems to ensure complete removal of malicious code.
Malicious code in request-js-validator (npm)
Description
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. --- _-= Per source details. Do not edit below this line.=-_ ## 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'request-js-validator' npm package versions 1.0.2, 1.0.3, and 1.0.4 contain malicious code that replicates the legitimate 'request' library but injects a payload that spawns a detached child process. This process fetches a second-stage payload and executes it using JavaScript's Function constructor with 'require', enabling arbitrary code execution. This behavior mirrors previously observed malicious patterns such as those in 'express-session-js'. The package effectively compromises any system on which it is installed or executed, granting attackers full control and access to sensitive information.
Potential Impact
Systems with the affected versions of 'request-js-validator' installed or running are fully compromised. Attackers gain the ability to execute arbitrary code remotely, potentially accessing or exfiltrating all secrets and keys stored on the system. The compromise is severe enough that simply removing the package may not eliminate all malicious components, necessitating credential rotation and potentially full system remediation.
Mitigation Recommendations
No official patch or fix is available for this malicious package. Immediate removal of the 'request-js-validator' package versions 1.0.2, 1.0.3, and 1.0.4 is required. All secrets and keys on the compromised system should be rotated from a separate, trusted environment. Due to the high risk of persistent compromise, consider rebuilding the affected systems to ensure complete removal of malicious code.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-2526
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-wrcq-4545-xm9w"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c341527e9c797195f7ee9
Added to database: 07/06/2026, 23:02:45 UTC
Last enriched: 07/06/2026, 23:18:29 UTC
Last updated: 07/22/2026, 06:51:01 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.