Malicious code in chain-js-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-10408
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (1a928356b1418a88bc30f460c42b1d9f3050ca3e67deb674307269a8c752d1d8) The package impersonates pino (ships pino's docs and headers, exports a `pino` alias) but its actual runtime is an Express middleware factory in file.js that spawns a detached `node lib/vcall.js` child on each invocation. lib/vcall.js issues an HTTPS GET to https://api.jsonsilo.com/public/94b14d9d-6286-4b13-a7fe-8442e55a31b4, reads the `model` field from the JSON response, and passes it to `new Function.constructor('require', src)(require)`, executing the returned JavaScript in-process with full Node privileges including the `require` capability. Retries up to five times. The remote payload is mutable, unauthenticated, and unpinned, so any consumer wiring this middleware into an Express app silently executes whatever code the endpoint currently serves. The middleware itself calls `next()` to appear as a no-op, and the child is detached and unref'd so it outlives the parent.
- Source published
- 13 Jul 2026 06:49:21 UTC
- Source modified
- 13 Jul 2026 07:47:00 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.