{"id":"MAL-2026-10063","revision":"9c5c2821f9a5426ba1d0fa32d9f1cdfe","records":[{"revision":"9c5c2821f9a5426ba1d0fa32d9f1cdfe","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10063","aliases":[],"title":"Malicious code in express-router-engine (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (49091d8e8923e3e709cebd14f01ee1617267bf3f9b6be99052603715b7cf9f70)\nThe sole shipped file index.js is a heavily obfuscated (RC4 + base64 string-array, 337-entry rotated array, control-flow flattening) IIFE that executes at require() time. On load it constructs a URL from encrypted string constants plus the package version, issues an HTTP GET with an `Authentication` header, splits the response body on ':' to derive a symmetric key and IV, decrypts the payload with crypto.createDecipheriv, writes the decrypted bytes to a file under a temp/home path, and executes that file via child_process.exec with `windowsHide:true`. All module names (fs, os, path, child_process, http client), the fetch URL, header name/value, crypto algorithm, and temp path components are stored encrypted in the string array — the obfuscation exists purely to hide the C2 URL and payload pipeline. The package name (`express-router-engine`) also mismatches its own description text (`express-route-engine is a lightweight routing framework...`), consistent with name-confusion against a legitimate routing helper. Any consumer that requires this package fetches and executes attacker-controlled code on the installer's machine.\n","state":0,"publishedAt":"2026-07-09T15:55:17+00:00","modifiedAt":"2026-07-09T21:16:56.2970661+00:00","affected":[{"ecosystem":"npm","name":"express-router-engine","ranges":[],"versions":["3.6.5","3.6.6","3.6.7","3.6.8"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/express-router-engine/v/3.6.5","https://www.npmjs.com/package/express-router-engine/v/3.6.6","https://www.npmjs.com/package/express-router-engine/v/3.6.7","https://www.npmjs.com/package/express-router-engine/v/3.6.8"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10063","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10063","identifiers":["MAL-2026-10063"]},"retained":false,"historicalAffected":[]}],"coverage":[]}