CVE-2026-88755: Z.ai ZCode starts MCP servers from a repo's config the moment you open it
Z.ai's ZCode desktop client 3.11.2.6792 connects to every MCP server declared in a repository's .zcode/config.json as soon as you open the folder, with no approval prompt. A cloned repo can run any command it likes on your machine.
What it is
The researcher's write-up: ZCode merges the repo-local .zcode/config.json into its MCP server list and connects to each server immediately. For stdio servers it spawns the configured command directly, so opening a repository runs whatever command the repository declares.
In their test on Windows 11, opening a crafted repo started an MCP handshake with no consent dialog and launched calc.exe automatically.
The auto-connected server's tool descriptions also go straight into the agent's context. A poisoned description got the agent to send the contents of ~/.zcode/v2/credentials.json (API keys, a JWT token and SSH workspace passwords) to the attacker's server with no warning.
The same researcher points to a similar earlier bug in OpenAI's Codex CLI (CVE-2025-61260). NVD lists this CVE as deferred, and we haven't found a vendor advisory yet.
How to check
- Affected: ZCode desktop client 3.11.2.6792 (tested on Windows x64). Other versions weren't listed.
- Before opening a cloned repo in ZCode, look for a .zcode/config.json file and read any MCP servers it declares.
How to fix
- No fixed version is listed yet. Watch Z.ai's release notes for one.
- Don't open untrusted repositories or pull requests in ZCode. Remove or review .zcode/config.json first.
- If you opened an untrusted repo, rotate the API keys and tokens stored in ~/.zcode/v2/credentials.json.
# before opening a cloned repo in ZCode
cat .zcode/config.json 2>/dev/nullSources
- criticalCVE-2026-96620: Claude Agent SDK (Python) resume option lets attackers run commands
- criticalCVE-2026-95182: DeepSeek Harness can be tricked into running a planted fake npx
- criticalLangflow: adding an MCP server runs any command on the host (CVE-2026-105697, CVE-2026-105740)
- criticalCVE-2026-32871: FastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerability