# claw-code: a repo's own config starts MCP servers before any prompt

> CVE-2026-128115 lets a repository run commands on a developer machine the moment claw-code starts inside it.

- **Severity:** Critical: Exploited in the wild, or easy remote code execution or data theft in a widely used product with no fix. Act today.
- **Category:** Vulnerability, Supply chain
- **Published by:** Fluid Attacks
- **Disclosed:** 2026-11-30
- **CVE:** CVE-2026-128115
- **CVSS:** 8.4
- **Affects:** claw-code
- **Research by:** Juan García
- **Primary source:** https://fluidattacks.com/advisories/miviejo
- **Page:** https://theinjection.dev/items/fluid-attacks-claw-code-project-mcp-config/

claw-code 0.1.11 through 0.1.16 launches stdio MCP servers listed in a repository's .claw.json during tool discovery, so running claw inside a cloned repository runs the command it names. Fluid Attacks lists no fixed version.

## What happened

Fluid Attacks published advisory miviejo on 30 November 2026, after finding the flaw on 4 November and contacting Ultraworkers on 12 November. Juan García of the Fluid Attacks offensive team is credited. NVD published CVE-2026-128115 on 1 December 2026 with a CVSS 4.0 base score of 8.4.

## How it works

Project-scoped configuration is the mechanism. claw-code reads mcpServers definitions from .claw.json and .claw/settings.json in the working directory, then launches each stdio server's executable during tool discovery. Fluid Attacks reports that project-level hooks have their configuration stripped because hooks lack a trust-approval flow, while mcpServers entries carry no equivalent restriction, so no permission prompt and no workspace-trust check stand between a cloned repository and the command it names. The advisory's proof of concept fires before claw-code validates provider credentials or sends a prompt.

## Who is affected

Versions 0.1.11 through 0.1.16 are affected, per Fluid Attacks, and 0.1.16 is the current release. Exposure follows from where the agent is started: anyone who runs claw in a repository they did not write is at risk, including automation that checks out untrusted branches first.

## What to do

Avoid running claw in repositories with unreviewed mcpServers entries in .claw.json or .claw/settings.json, which is the workaround the advisory gives. Define required stdio MCP servers only in user-level configuration until a vendor fix ships, and check a cloned repository for those two files before starting the agent in it.

## Quick facts

- **Affected:** claw-code 0.1.11 through 0.1.16
- **Fixed in:** No fixed version listed; 0.1.16, released 27 November 2026, is the latest release
- **CVE:** CVE-2026-128115, CVSS 4.0 base score 8.4, assigned by Fluid Attacks
- **Config files:** .claw.json and .claw/settings.json in the project directory
- **Found by:** Juan García, Fluid Attacks offensive team
- **Disclosed:** 30 November 2026, after vendor contact on 12 November 2026
- **Status:** Unpatched, per the advisory

## Questions

### Is there a patched version of claw-code for CVE-2026-128115?

Fluid Attacks lists no fixed version for CVE-2026-128115 and names 0.1.16 as the current affected release. Version 0.1.16 shipped on 27 November 2026, three days before the advisory went public, and its release notes describe only a hook stability fix. Until Ultraworkers ships a change, the advisory's workaround is the protection available.

### How do I check a repository for a malicious claw-code MCP configuration?

Read .claw.json and .claw/settings.json in the repository before you run claw, and inspect any mcpServers entries they hold. Fluid Attacks reports that a stdio entry's command runs during tool discovery, which is why reviewing those two files is the stated workaround. Defining MCP servers only in user-level configuration removes the project-scoped path completely.

### Does claw-code prompt for permission before starting a project-defined MCP server?

No. Fluid Attacks reports that claw-code accepts and starts stdio MCP servers from project scope with no permission prompt and no workspace-trust check. The advisory contrasts this with project-level hooks, whose configuration is stripped for lack of a trust-approval flow, and recommends rejecting project-scoped stdio servers by default or requiring a persisted trust approval.

### Am I affected if I only open an untrusted repository without running claw-code?

Opening files alone does not trigger CVE-2026-128115. Fluid Attacks reports that the configured command runs during claw-code's startup tool discovery, so the trigger is starting the agent with that directory as the working directory. Running claw once from a repository containing a hostile mcpServers entry is enough, and it happens before any prompt is sent.

## Sources

1. [Fluid Attacks Advisory](https://fluidattacks.com/advisories/miviejo)
2. [GitHub Advisory](https://github.com/advisories/GHSA-wjhv-vvm2-cxv5)
3. [claw-code Releases](https://github.com/ultraworkers/claw-code/releases)
