{"id":"MAL-2026-4403","revision":"74de4eb23f6648c792c101774e01c9ac","records":[{"revision":"74de4eb23f6648c792c101774e01c9ac","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-4403","aliases":[],"title":"Malicious code in @link-assistant/hive-mind (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (7dfeaad3a9eda8f440dabe165d4ff6ba593c9858b9752d9bded19b05b292072a)\nThe package fetches https://unpkg.com/use-m/use.js — an unpinned URL that resolves to the latest published version of the third-party `use-m` package — and passes the response body directly to `eval()` to bootstrap a runtime module loader. The pattern appears at the top level of src/lib.mjs (lines 34-36: `globalThis.use = (await eval(await (await fetch('https://unpkg.com/use-m/use.js')).text())).use`), so it fires on import of that module by any consumer or bin script. The same pattern is repeated in src/hive.mjs (lines 48-53) and across roughly thirty other files in the package. There is no version pin, no SRI hash, and no integrity verification. Any compromise of the `use-m` npm package, or of the unpkg response path, results in arbitrary attacker-controlled JavaScript executing in the context of every consumer that runs or imports this package — including, when the user passes `--auto-cleanup`, a `sudo rm -rf /tmp/* /var/tmp/*` shell call that broadens the blast radius. The static `fetch`/`POST`/`process.env` co-occurrences in config.lib.mjs, github.lib.mjs, hive.mjs, limits.lib.mjs, opencode.lib.mjs, playwright-mcp.lib.mjs, and youtrack/youtrack.lib.mjs are calls to documented vendor APIs (api.openai.com, api.anthropic.com, api.github.com, opencode.ai, youtrack.cloud) consistent with the package's stated AI-orchestration purpose and are not themselves the block basis.\n","state":2,"publishedAt":"2026-05-20T20:09:58+00:00","modifiedAt":"2026-08-06T23:50:30.4193234+00:00","affected":[{"ecosystem":"npm","name":"@link-assistant/hive-mind","ranges":[],"versions":["1.72.3","1.72.5","1.69.17","1.72.6","1.72.1","1.72.4","2.8.9","2.7.4","2.11.12","2.8.7"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@link-assistant/hive-mind/v/1.72.3","https://www.npmjs.com/package/@link-assistant/hive-mind/v/1.72.5","https://www.npmjs.com/package/@link-assistant/hive-mind/v/1.69.17","https://www.npmjs.com/package/@link-assistant/hive-mind/v/1.72.6","https://www.npmjs.com/package/@link-assistant/hive-mind/v/1.72.1","https://www.npmjs.com/package/@link-assistant/hive-mind/v/1.72.4","https://www.npmjs.com/package/@link-assistant/hive-mind/v/2.8.9","https://www.npmjs.com/package/@link-assistant/hive-mind/v/2.7.4","https://www.npmjs.com/package/@link-assistant/hive-mind/v/2.11.12","https://www.npmjs.com/package/@link-assistant/hive-mind/v/2.8.7"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-4403","license":"OSV · upstream source license applies","key":"osv:MAL-2026-4403","identifiers":["MAL-2026-4403"]},"retained":false,"historicalAffected":[]}],"coverage":[]}