{"id":"MAL-2026-5991","summary":"Malicious code in req-parmas-valid (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (063b7e2667c434784d0b5d2ce333ea700fbc17571da3f5f4fc7d0f03ac406bd0)\nPackage name `req-parmas-valid` impersonates the well-known `request` HTTP client (description copied verbatim as 'Simplified HTTP request client.', `bugs.url` points at `github.com/request/request/issues`, README and most source copied from upstream). Bolted onto the copied source is a malicious `middleware` export (also exposed as `reqValidator` and the package's default export) which spawns a detached `node lib/callers.js` child process. `lib/callers.js` performs an HTTPS GET to `https://www.jsonkeeper.com/b/DDC6J` (an anonymous, mutable paste host), reads the `Cookie` field of the JSON response, and evaluates it via `new Function.constructor(\"require\", s)(require)` — handing the fetched bytes full Node `require` capability with no integrity check, no pinning, and a payload host completely alien to the package's advertised purpose. Any consumer that imports and uses the middleware (the obvious Express-style API shape) executes arbitrary remote code controlled by whoever currently owns the paste.\n","aliases":["GHSA-3pgv-795j-3ggc"],"modified":"2026-09-01T11:31:20.606087841Z","published":"2026-06-17T04:20:22Z","database_specific":{"malicious-packages-origins":[{"sha256":"063b7e2667c434784d0b5d2ce333ea700fbc17571da3f5f4fc7d0f03ac406bd0","source":"amazon-inspector","versions":["1.0.2"],"id":"IN-MAL-2026-006879","import_time":"2026-06-17T05:45:41.944510336Z","modified_time":"2026-06-17T04:20:22Z"},{"sha256":"ab33e727b3338f40fbe82e666b8d9bcf12a47e8a6cb9492bcfaca66766500f65","source":"reversing-labs","versions":["1.0.2"],"id":"RLMA-2026-05605","import_time":"2026-07-20T13:14:50.532008612Z","modified_time":"2026-07-20T10:57:09Z"},{"source":"reversing-labs","id":"RLUA-2026-06439","import_time":"2026-09-01T11:18:20.47819577Z","modified_time":"2026-08-24T17:08:26Z","sha256":"f3fc671c69434ff7ca16e9b553adc3b9efe1aa2347902d3ccf2a66a41b74d8f4"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/req-parmas-valid/v/1.0.2"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-3pgv-795j-3ggc"}],"affected":[{"package":{"name":"req-parmas-valid","ecosystem":"npm","purl":"pkg:npm/req-parmas-valid"},"versions":["1.0.2"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/req-parmas-valid/MAL-2026-5991.json","cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"tlsh":"5301cb8f70ac545c09b013f6bb2be436f622a56b390281d1375cc7421f7699d6643eee","path":"lib/callers.js","sha256":"2fd0ceb7b81d7b8ce9bc75aac88b67182d01b216767d8a25512025ec4ca99c07"},{"tlsh":"64415220cc6a9d931ec929e5697d5603b1a0e41bce41bc0d778a638c4f4e46f32b8f6d","path":"package.json","sha256":"0bb4f8160350702ffe349843c1ccacf8a6f4424307688ddbf2fc728e7e1a6295"}],"package_integrity":[{"filename":"req-parmas-valid-1.0.2.tgz","hashes":{"sha1":"4d132ce87bdeedf6ad055a4751e0039e3d8ce0a3","sha512_sri":"sha512-W+pSh5CRFQSFs32Iw3SQ/BrnIgUeppGeOCuCJ/sQsMWQtSH6wu8HZPR2OzkN8ERTeMfpKKd1QRo17x3TR7z2pQ=="}}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}