Malicious code in notifier-utils (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-6923
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6a5846e3c26fdded8225d54ec017b01be255353470c39a780bbd9b556c059120) The package presents itself as a pino-compatible logger (README, keywords, and a `module.exports.pino` alias mirror the pino identity, and lib/ replicates pino's file layout including proto.js, levels.js, transport.js, worker.js). Its actual behavior is remote code execution: index.js's exported middleware spawns `node lib/caller.js` with `detached: true`, `stdio: 'ignore'`, and `child.unref()`, hiding the child from the calling application. lib/caller.js issues an HTTPS GET to an IPFS gateway URL (emerald-accurate-urial-9.mypinata.cloud/ipfs/bafkreih3kofw4s22pcrwpi35nk57xy3r345nhsfxeuishcvljrsim3c3hq), reads the `.data.model` field, and executes the returned JavaScript via `new Function.constructor('require', src)` with `require` passed in — giving the fetched code full Node privileges (filesystem, network, child_process, arbitrary module loading). The IPFS-hosted payload is attacker-mutable, so the executed code can change at any time without a package update. The pino impersonation exists to induce developers to wire the exported middleware into their applications, at which point every request path that reaches the middleware triggers the remote-fetch-and-eval. ## Source: ghsa-malware (380fd81aec6bb1bcbeb2b21bb7b91bfb8e4ca4e184d07885faa094da6b42c952) 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.
- Source published
- 7 Jul 2026 15:13:22 UTC
- Source modified
- 9 Jul 2026 17:31:55 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.