{"id":"MAL-2026-13445","revision":"f4f54b414a98437c8c06bab90880e0c5","records":[{"revision":"f4f54b414a98437c8c06bab90880e0c5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13445","aliases":[],"title":"Malicious code in elephant-tusk-runner (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4ddbdcdca1756bee69586881547c9e63f555685a2e5e3daa68a9519987edd37a)\nserver.js starts an Express + WebSocket server via app.listen(PORT,...) with no host argument, defaulting the bind to 0.0.0.0, with fully open CORS (Access-Control-Allow-Origin: *) and no authentication. A WebSocket route /terminal-stream and HTTP POST /api/v1/workspace-terminal-command each spawn a bash or powershell.exe PTY and pipe network-received bytes directly into ptySession.write(...), giving any peer that can reach port 4201 an interactive shell on the host running the tool. Additional endpoints on the same listener call child_process.exec with attacker-controllable arguments, including `git clone --depth=1 ${targetGitUrl}...`, `composer install && php artisan key:generate`, `npm install`, `php \"${terminalFile}\"`, and taskkill/kill on arbitrary PIDs, plus a fetch-proxy that forwards arbitrary target URLs. The listener is started by `npm start` and by the `tusk`/`elephant` CLI shipped in the package's bin entries. On any developer or build machine on a shared or reachable network, this exposes a full remote-shell and remote-code-execution surface for the duration the tool runs.\n","state":0,"publishedAt":"2026-08-06T19:20:04+00:00","modifiedAt":"2026-08-06T23:50:12.8983387+00:00","affected":[{"ecosystem":"npm","name":"elephant-tusk-runner","ranges":[],"versions":["1.0.1","1.0.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/elephant-tusk-runner/v/1.0.1","https://www.npmjs.com/package/elephant-tusk-runner/v/1.0.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13445","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13445","identifiers":["MAL-2026-13445"]},"retained":false,"historicalAffected":[]}],"coverage":[]}