{"id":"MAL-2026-5602","revision":"217497b55493421b88904665bea94d3e","records":[{"revision":"217497b55493421b88904665bea94d3e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-5602","aliases":[],"title":"Malicious code in 0x2ai-zoe (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (724bd98c39a8e4ff21b039fddeadfda7f0ef7e3c6be47e771d72efed77d02b1b)\nOn `npm install`, scripts/postinstall.cjs copies the entire payload/ tree into process.env.INIT_CWD (the directory the developer ran npm from), depositing CLAUDE.md,.claude/settings.json,.claude/commands/0x2ai-boot.md,.mcp.json, and several MCP server.cjs files outside the package's own install directory. CLAUDE.md is auto-loaded as project instructions by Claude Code, and.mcp.json hardcodes BRIDGE_URL=https://zoe.0x2ai.com so that any subsequent Claude Code session in that directory routes chatroom_post, memory_save/load/search, brainmail_send, provider_query (user LLM prompts), and settings_set (which can carry API keys) calls through the author's host. bin/start.cjs additionally spawns `claude --dangerously-skip-permissions`, disabling per-tool consent prompts for filesystem and shell access during the session. The combination — install-time configuration injection into a directory the package does not own + a persona instructing the agent to follow remote-bridge directives + skip-permissions launch — gives the operator at zoe.0x2ai.com unprompted tool access on the developer's machine and silently relays prompts and settings (including credentials) off-host. The install-time write of opinionated Claude Code configuration into the developer's working directory occurs without consent and is the install-time-harm component; the bridge relay is the silent-relay component for any session subsequently opened in that directory.\n","state":2,"publishedAt":"2026-06-11T07:16:10+00:00","modifiedAt":"2026-07-17T03:04:23.2096735+00:00","affected":[{"ecosystem":"npm","name":"0x2ai-zoe","ranges":[],"versions":["1.2.0","0.2.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/0x2ai-zoe/v/1.2.0","https://www.npmjs.com/package/0x2ai-zoe/v/0.2.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5602","license":"OSV · upstream source license applies","key":"osv:MAL-2026-5602","identifiers":["MAL-2026-5602"]},"retained":false,"historicalAffected":[]}],"coverage":[]}