{"id":"MAL-2026-10154","revision":"93f5f3a0744945fc956ae9f149e54a76","records":[{"revision":"93f5f3a0744945fc956ae9f149e54a76","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10154","aliases":[],"title":"Malicious code in notify-dist (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1cf89f8fbe4c3f9ae9494077688977f46c8b3f875a552054508ac5eec7b62344)\nnotify-dist advertises itself as a pino-compatible logger/middleware (exports `module.exports.pino`, keywords fast/logger/stream/json, lib/ mirrors pino internals such as proto.js, multistream.js, redaction.js, transport.js), but the exported middleware's only side effect is to launch a remote-code loader. When a consumer requires the package and invokes the exported middleware, index.js spawns `node lib/caller.js` as a detached child with `stdio: 'ignore'` and `child.unref()` so the loader survives after the parent exits. lib/caller.js issues an HTTP GET to https://jsonkeeper.com/b/BPB86 via axios, reads the `.cookie` field of the response, and executes it as JavaScript via `new Function.constructor('require', s)(require)`, giving the fetched code full Node privileges including `require`. The loader retries up to 5 times and silences console.log to hide activity. lib/const.js additionally holds base64-encoded fields that decode to a second endpoint (https://jsonkeeper.com/b/ZK45J) and header name `x-secret-key`, serving as a rotation/backup payload URL. jsonkeeper.com is a mutable third-party JSON paste host, so the executed code is fully attacker-controlled and can change at any time. The pino-shaped API surface is a lure: consumers importing this expecting logger behavior get arbitrary remote code execution on their machine.\n","state":0,"publishedAt":"2026-07-10T16:46:54+00:00","modifiedAt":"2026-07-10T17:17:00.9695315+00:00","affected":[{"ecosystem":"npm","name":"notify-dist","ranges":[],"versions":["1.3.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/notify-dist/v/1.3.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10154","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10154","identifiers":["MAL-2026-10154"]},"retained":false,"historicalAffected":[]}],"coverage":[]}