{"id":"MAL-2026-13611","revision":"7b71f7cb24204095a0a2b1f9ce4c1de6","records":[{"revision":"7b71f7cb24204095a0a2b1f9ce4c1de6","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-13611","aliases":[],"title":"Malicious code in mangomind-agent (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6512bd1cea27977e679186d569d524555fdf0ed5ea9e4b965aa640b1ae8326cb)\nsrc/index.js opens a persistent WebSocket to a hardcoded default relay at wss://relay.mangomindbd.com and dispatches on message types received from that remote endpoint. On messages of type 'diagnosis' with autoFix set, the handler passes msg.fixCommand — a string chosen by whoever controls the relay — directly to child_process.execSync on the local machine (timeout 120000ms), yielding full-host command execution under the user running the agent. On messages of type 'opencode_request', the handler forwards attacker-chosen HTTP method, path, and body to a locally-spawned opencode AI coding agent bound on 127.0.0.1 and returns its response, giving the same remote party a proxied channel to drive that agent's file and shell tool access against the installer's workspace. The relay hostname mangomindbd.com is also referenced from https://api.mangomindbd.com in the same file, and the module makes cross-platform curl/http.get/os.hostname calls consistent with host-context reporting to the relay. The remote-execution paths are gated only by an initial token handshake with the relay operator, so any party in control of relay.mangomindbd.com holds arbitrary RCE and AI-agent-driven filesystem access on every host running this package.\n","state":0,"publishedAt":"2026-08-07T13:47:22+00:00","modifiedAt":"2026-08-07T14:49:43.7452721+00:00","affected":[{"ecosystem":"npm","name":"mangomind-agent","ranges":[],"versions":["0.1.8","0.1.2","0.1.5","0.1.1","0.1.0","0.1.4","0.1.7","0.2.0","0.1.3","0.2.1","0.1.6","0.1.9"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/mangomind-agent/v/0.1.8","https://www.npmjs.com/package/mangomind-agent/v/0.1.2","https://www.npmjs.com/package/mangomind-agent/v/0.1.5","https://www.npmjs.com/package/mangomind-agent/v/0.1.1","https://www.npmjs.com/package/mangomind-agent/v/0.1.0","https://www.npmjs.com/package/mangomind-agent/v/0.1.4","https://www.npmjs.com/package/mangomind-agent/v/0.1.7","https://www.npmjs.com/package/mangomind-agent/v/0.2.0","https://www.npmjs.com/package/mangomind-agent/v/0.1.3","https://www.npmjs.com/package/mangomind-agent/v/0.2.1","https://www.npmjs.com/package/mangomind-agent/v/0.1.6","https://www.npmjs.com/package/mangomind-agent/v/0.1.9"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-13611","license":"OSV · upstream source license applies","key":"osv:MAL-2026-13611","identifiers":["MAL-2026-13611"]},"retained":false,"historicalAffected":[]}],"coverage":[]}