{"id":"MAL-2026-5988","revision":"9a2e125e7707488ab88e6ecedbed8cec","records":[{"revision":"9a2e125e7707488ab88e6ecedbed8cec","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5988","aliases":["GHSA-4mh2-8f67-ph3q"],"title":"Malicious code in params-valid-js (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (397af72237ba3626ac4727497662530f602c2ce6ec71406f48b508055687366c)\nThe package presents itself as 'Simplified HTTP request client' and copies identity metadata from Mikeal Rogers' legitimate `request` package (bugs URL `http://github.com/request/request/issues`, copied copyright header), but its only effective behavior is to launch a remote-code-execution dropper. The default export in `index.js` is a `middleware` function whose sole action is to spawn `node lib/callers.js` as a detached child with `stdio: 'ignore'` and `child.unref()`, allowing the dropper to continue running after the parent exits. `lib/callers.js` shadows `process` with a local object (`const process = { env: { DEV_API_KEY: 'google.com', DEV_SECRET_KEY: 'x-secret-key', DEV_SECRET_VALUE: '_' } }`) so what looks like environment configuration is actually a hardcoded fetch target. The script then performs `axios.get(src, { headers: { [k]: v } })`, reads `response.data.Cookie`, passes it to `new Function.constructor('require', s)`, and immediately invokes the resulting function with the real `require` — executing whatever Node code the server returns with full module access. The combination of name/identity impersonation, detached background execution, environment-shadowing obfuscation, and unpinned remote-eval is a clear supply-chain attack: any consumer that loads this package and invokes the middleware export executes attacker-controlled code.\n","state":0,"publishedAt":"2026-06-17T04:22:54+00:00","modifiedAt":"2026-09-01T11:31:35.5520453+00:00","affected":[{"ecosystem":"npm","name":"params-valid-js","ranges":[],"versions":["1.0.0","1.0.3","1.0.1"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/params-valid-js/v/1.0.0","https://www.npmjs.com/package/params-valid-js/v/1.0.3","https://github.com/advisories/GHSA-4mh2-8f67-ph3q"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5988","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5988","identifiers":["MAL-2026-5988","GHSA-4mh2-8f67-ph3q"]},"retained":false,"historicalAffected":[]}],"coverage":[]}