MAL-2026-14307Malicious code in express-route-engine (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | express-route-engine | 3.6.3 |
{"modified":"2026-08-19T22:21:52Z","published":"2026-08-19T22:21:52Z","schema_version":"1.7.4","id":"MAL-2026-14307","summary":"Malicious code in express-route-engine (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8f54041362d71f16d1ee889c3992558cec28371030eaca4a3962ac0e9e3ec55d)\nOn 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.\n","affected":[{"package":{"ecosystem":"npm","name":"express-route-engine"},"versions":["3.6.3"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"index.js","sha256":"d5fb9d5f33e208b9ba37dc361cfc2dbf51a2c64ed0c5a890c95bd2da587a0cca","tlsh":"4a41e1d924fa6115c1a3e1810e8f8409f22be1133359dac5b98c53546fd07b8a7f2b8a"}],"package_integrity":[{"filename":"express-route-engine-3.6.3.tgz","hashes":{"sha1":"c387ca03334bad4dddc553819495877db0259148","sha512_sri":"sha512-onNPWjvKK6E7IPLMAFOewxajTn4OjRXSgIWtVJbTiGBB1LKpjRShmqCV1E3qNXEcV7BIo7LkK8YhL9qAIsUhhQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/express-route-engine/v/3.6.3"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-018429","import_time":"2026-08-19T22:42:50.923319971Z","modified_time":"2026-08-19T22:21:52Z","sha256":"8f54041362d71f16d1ee889c3992558cec28371030eaca4a3962ac0e9e3ec55d","source":"amazon-inspector","versions":["3.6.3"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0