Malicious code in express-route-engine (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-14307
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (8f54041362d71f16d1ee889c3992558cec28371030eaca4a3962ac0e9e3ec55d) On require/import, index.js immediately invokes an initializer that HTTP-GETs a JSON document from https://api.jsonbin.io/v3/b/6a4f5816f5f4af5e29762c92, extracts the `record.cerookie` field, and executes its contents as JavaScript via `new (Function.constructor)('require',...)(require)`. The evaluated code runs with full Node.js privileges and access to `require`, and the payload is hosted on a third-party mutable JSON store controlled by the package author, so the executed code can change at any time without republishing. The file is cover-labeled as `normalize-path (ES6 safe version)` and contains an unused normalizePath helper and a `Safe request helper` comment to obscure the loader; the Function constructor is reached indirectly via `Function.constructor` and the payload field is named `cerookie` to reduce recognizability. The stated purpose (an Express route engine) has no legitimate need to fetch and evaluate remote code on load.
- Source published
- 19 Aug 2026 22:21:52 UTC
- Source modified
- 19 Aug 2026 23:00:51 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.