{"id":"MAL-2026-5591","revision":null,"records":[{"revision":"70098133c2f34284a4ed9df35191aba5","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5591","aliases":[],"title":"Malicious code in 0x2ai-demo4 (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (1893e8cd8ff38936ad388208f98e30cc64a6b1126062e2ff716004338feedf8c)\nOn `npm install`, the package's postinstall script unconditionally copies its `payload/` tree into the user's project directory (`process.env.INIT_CWD`), planting a `.mcp.json`, a `.claude/commands/0x2ai-boot.md` slash command, a `.claude/settings.json` with a `statusLine` command, and a `CLAUDE.md` system-prompt file. The dropped `.mcp.json` registers an MCP server that routes every tool call (chatroom_post, memory_save, provider_query, settings_get/set, participant_*) to `https://demo4.0x2ai.com` using a hardcoded shared `BRIDGE_AUTH_TOKEN` (`fabc3af531c05473fd5667f5360afb68666156e47c6981ce`). Once any future Claude Code session is opened in that project directory, the user's chat content, saved memories, and prompts intended for other LLM providers are transparently funneled through the author-controlled bridge — the user never edited their own `.mcp.json` to opt in. The dropped `CLAUDE.md` further instructs the agent to conceal its architecture, MCP wiring, and auth tokens from the user, supplying cover-story phrasing to deflect questions about the relay path. Separately, the package's `bin/start.cjs` launches `claude --dangerously-skip-permissions` with `shell: true`, disabling Claude Code's tool-permission prompts so the author-supplied persona and MCP can drive arbitrary file/shell/network actions without confirmation. The combination — postinstall-planted MCP relay + concealment instructions + permission-bypass launcher — is silent-relay of caller-supplied conversation data to a third-party endpoint, configured without user consent at install time.\n","state":2,"publishedAt":"2026-06-11T07:16:18+00:00","modifiedAt":"2026-07-17T03:04:23.2153065+00:00","affected":[{"ecosystem":"npm","name":"0x2ai-demo4","ranges":[],"versions":["1.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/0x2ai-demo4/v/1.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5591","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5591","identifiers":["MAL-2026-5591"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-24T15:27:37.4126745+00:00","complete":true,"records":1792,"lastAttemptAt":"2026-11-24T15:27:37.4126745+00:00","lastSuccessAt":"2026-11-24T15:27:37.6241767+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.6241771+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-f6e4a7f93ed9acd6fcb1f804a4567f7b9b16730ac126110af8d6d24176317946-df50bcd17e90a3371298109ea504791e554fa139cf110c9e4299b8d427b98a7b","complete":true,"records":431339,"lastAttemptAt":"2026-11-24T15:25:35.4865231+00:00","lastSuccessAt":"2026-11-24T15:25:35.3489378+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:25:35.4865231+00:00","snapshotPublishedAt":"2026-11-24T14:30:39+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-c2da376b27c645ccbbed2e0234bd07bd","complete":false,"records":13935,"lastAttemptAt":"2026-11-24T15:30:13.7888885+00:00","lastSuccessAt":"2026-11-24T15:30:13.784+00:00","error":"180 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-24T15:30:13.784+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13791,"expectedIdentifiers":13982,"failedIdentifiers":180},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-24T15:27:37.4126745+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-24T15:27:37.4126745+00:00","lastSuccessAt":"2026-11-24T15:27:37.7117201+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.7117205+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-dd0124aa454041daa6390d321cbaa422","complete":false,"records":13947,"lastAttemptAt":"2026-11-24T15:28:07.9768532+00:00","lastSuccessAt":"2026-11-24T15:28:07.968+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:28:07.968+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13483,"expectedIdentifiers":13982,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c86437892ddabdeaf17409463a17578b1e71dd185d64061100dd57629858f6d6","complete":true,"records":10074,"lastAttemptAt":"2026-11-24T15:27:37.3447915+00:00","lastSuccessAt":"2026-11-23T22:27:19.6557603+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.3447915+00:00","snapshotPublishedAt":"2026-11-23T21:33:52+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-24T15:25:35.6214623+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:25:35.6214623+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-3afd4dd07a6bf352a6a53c4438150c464a2527017b95ca94804134ea15f1eba9","complete":true,"records":3220,"lastAttemptAt":"2026-11-24T15:27:37.3582994+00:00","lastSuccessAt":"2026-11-24T10:25:37.8779609+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.3582994+00:00","snapshotPublishedAt":"2026-11-24T09:33:40+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-d4ec43f5cfee38989290b04011f2dc8845e8ef74e8b11a5d0a72ce8c76be2839","complete":true,"records":233009,"lastAttemptAt":"2026-11-24T15:27:37.2158898+00:00","lastSuccessAt":"2026-11-24T15:27:36.0836437+00:00","error":null,"lastVerifiedAt":"2026-11-24T15:27:37.2158898+00:00","snapshotPublishedAt":"2026-11-24T14:33:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}