{"id":"MAL-2026-4601","revision":"606f1347dca34053a4152cfba5933637","records":[{"revision":"606f1347dca34053a4152cfba5933637","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-4601","aliases":[],"title":"Malicious code in local-mcp (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4649a6cac828460ea4a3e6d867038eaa507f109eb6a46de9eef1fc340d867608)\nThe package executes lifecycle and import-time code that fetches executables and posts host data to off-publisher infrastructure. download.js (line 92) issues https.get to https://office-mcp-production.up.railway.app and to https://download.local-mcp.com, fetching binary content that is written to disk via fs and executed via child_process. index.js (line 194) performs https.get to https://office-mcp-production.up.railway.app while also reading process.env (lines 180, 277), os.homedir() (line 68), and process.platform (line 23) — host/identity fields gathered alongside an outbound POST. setup.js wires multiple POST calls (lines 61, 343, 800, 878, 904) over https with child_process available in scope. The package name is 'local-mcp' but the primary network destination is a Railway-hosted endpoint ('office-mcp-production.up.railway.app') that does not match the declared publisher domain (local-mcp.com); Railway free-tier subdomains are mutable, not version-pinned, and not author-controlled infrastructure in any verifiable sense. The combination — install/import-time fetch of binaries from a non-publisher mutable host, write+execute via child_process, and concurrent collection of env vars + homedir + platform with POSTs to the same Railway host — matches the active-attack / install-time-rce shape rather than a legitimate native-addon prebuild flow (which would fetch from the package's own GitHub releases at a pinned version with hash verification).\n","state":2,"publishedAt":"2026-05-20T08:14:15+00:00","modifiedAt":"2026-07-16T19:20:02.5949004+00:00","affected":[{"ecosystem":"npm","name":"local-mcp","ranges":[],"versions":["3.0.177","3.0.199","3.0.211","3.0.217","3.0.210","3.0.192","3.0.212","3.0.197","3.0.201","3.0.203","3.0.198","3.0.206","3.0.215","3.0.209","3.0.221","3.0.180","3.0.178","3.0.186","3.0.183","3.0.207","3.0.188","3.0.340"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/local-mcp/v/3.0.177","https://www.npmjs.com/package/local-mcp/v/3.0.199","https://www.npmjs.com/package/local-mcp/v/3.0.211","https://www.npmjs.com/package/local-mcp/v/3.0.210","https://www.npmjs.com/package/local-mcp/v/3.0.192","https://www.npmjs.com/package/local-mcp/v/3.0.212","https://www.npmjs.com/package/local-mcp/v/3.0.197","https://www.npmjs.com/package/local-mcp/v/3.0.201","https://www.npmjs.com/package/local-mcp/v/3.0.203","https://www.npmjs.com/package/local-mcp/v/3.0.198","https://www.npmjs.com/package/local-mcp/v/3.0.206","https://www.npmjs.com/package/local-mcp/v/3.0.215","https://www.npmjs.com/package/local-mcp/v/3.0.209","https://www.npmjs.com/package/local-mcp/v/3.0.221","https://www.npmjs.com/package/local-mcp/v/3.0.180","https://www.npmjs.com/package/local-mcp/v/3.0.178","https://www.npmjs.com/package/local-mcp/v/3.0.186","https://www.npmjs.com/package/local-mcp/v/3.0.183","https://www.npmjs.com/package/local-mcp/v/3.0.207","https://www.npmjs.com/package/local-mcp/v/3.0.217","https://www.npmjs.com/package/local-mcp/v/3.0.188","https://www.npmjs.com/package/local-mcp/v/3.0.340"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-4601","license":"OSV · upstream source license applies","key":"osv:MAL-2026-4601","identifiers":["MAL-2026-4601"]},"retained":false,"historicalAffected":[]}],"coverage":[]}