MAL-2026-2526

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/request-js-validator/MAL-2026-2526.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-2526
Aliases
  • GHSA-wrcq-4545-xm9w
Published
2026-04-06T16:07:02Z
Modified
2026-07-06T20:01:51.946494947Z
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.


-= 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "1.0.2"
            ],
            "sha256": "2d5a657a9a3d02a6e081dad40434d93af76f1015495e2fddb11328d88f453063",
            "modified_time": "2026-04-10T17:02:58Z",
            "import_time": "2026-04-10T17:21:50.779095975Z",
            "source": "amazon-inspector"
        },
        {
            "sha256": "a943c6f68b9badd203b85e98b4997b5f5dfb750e15f13e8f8393e7094b0d4de0",
            "id": "GHSA-wrcq-4545-xm9w",
            "import_time": "2026-07-06T19:53:47.991908692Z",
            "modified_time": "2026-07-06T18:57:32Z",
            "versions": [
                "1.0.4",
                "1.0.3",
                "1.0.2"
            ],
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / request-js-validator

Package

Name
request-js-validator
View open source insights on deps.dev
Purl
pkg:npm/request-js-validator

Affected ranges

Affected versions

1.*
1.0.2
1.0.3
1.0.4

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/request-js-validator/MAL-2026-2526.json"