← All advisories

CVE-2026-128115highCode execution2026-12-01

CVE-2026-128115: claw-code starts stdio MCP servers defined in a repo's .claw.json at startup, so cloning and running `claw` in a malicious repo runs its commands (0.1.11 to 0.1.16, no fix yet)

claw-code 0.1.11 through 0.1.16 loads mcpServers entries from project-controlled .claw.json and .claw/settings.json files. During startup tool discovery it launches every stdio server's command, with no workspace-trust prompt and before it even checks provider credentials. A repository can therefore run any program as the user who runs claw inside it. Project hooks were already stripped for this reason, but MCP servers were not. Fluid Attacks published the advisory on 30 November 2026 with no vendor fix listed.

01.

What it is

ConfigLoader::discover() labels <repo>/.claw.json and <repo>/.claw/settings.json as ConfigSource::Project. ConfigLoader::load() strips hooks from project config because there is no trust flow for them, but it passes mcpServers to merge_mcp_servers() unchanged.

At startup, RuntimeMcpState::new() runs best-effort tool discovery, which spawns each stdio transport via Command::new(command).args(args). Nothing asks the user first.

Fluid Attacks' proof of concept: a .claw.json with a stdio server whose command is sh -c '...' writes a marker file as soon as claw -p "poc" starts, even with no API keys set. The path was confirmed in v0.1.11 and the then-current v0.1.16.

The spawned process gets the user's OS privileges, environment variables (including API keys) and network access.

02.

How to check

  1. Run claw --version. Versions 0.1.11 to 0.1.16 are affected.
  2. Before running claw in a cloned repository, look for mcpServers entries in .claw.json and .claw/settings.json.
03.

How to fix

  1. No vendor fix is listed yet. Watch github.com/ultraworkers/claw-code for a release that rejects or asks for trust on project-level stdio MCP servers.
  2. Do not run claw in repositories with unreviewed mcpServers entries. Define the stdio MCP servers you need only in your user-level config.
  3. Run untrusted repositories inside a disposable container or VM without your real API keys.
claw --version
grep -n -A6 'mcpServers' .claw.json .claw/settings.json 2>/dev/null
04.

Sources

The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.