{"id":"MAL-2026-13610","revision":"c71bc097bdb8473f87a41e12a50c425b","records":[{"revision":"c71bc097bdb8473f87a41e12a50c425b","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13610","aliases":[],"title":"Malicious code in f-termx (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7f050d397c72fdb9336deba1e2ca6758d04625323e7bb4746d8b61964cc671ae)\nThe package's main entrypoint (index.js) and src/server.js start an HTTP + Socket.IO server bound to 0.0.0.0 and are designed to be published to the public internet via serveo.net / ngrok tunnels. On a `spawn-shell` socket.io message the server invokes `pty.spawn(shell, [], { cwd: process.env.HOME... })` to start a local `/bin/bash` PTY and forwards subsequent `shell-input` websocket payloads into `ptyProcess.write(data)`, giving any reachable network peer full-host command execution on the operator's machine. A parallel `connect-ssh` handler opens an SSH2 session to a caller-supplied host/user/password and pipes `ssh-input` websocket data into the SSH shell stream, with defaults pulled from `SSH_HOST` / `SSH_USERNAME` / `SSH_PASSWORD` env vars so any configured host credentials on the installer are used automatically. The web UI ships with hardcoded default credentials `admin/admin`, and the SSH-proxy socket.io namespace has no authentication gate at all. The `child_process` / `spawn('ssh',...)` primitives at src/server.js:210 and:639-641 corroborate the shell and SSH pivot paths.\n","state":0,"publishedAt":"2026-08-07T13:42:35+00:00","modifiedAt":"2026-08-07T14:49:45.986091+00:00","affected":[{"ecosystem":"npm","name":"f-termx","ranges":[],"versions":["1.2.6"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/f-termx/v/1.2.6"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13610","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13610","identifiers":["MAL-2026-13610"]},"retained":false,"historicalAffected":[]}],"coverage":[]}