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.
· Fluid Attacks · Research by Juan García
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.
01What 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.
02How 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.
03Who 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.
04What 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.
Questions people ask
- 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 3 links, all fetched
- 1fluidattacks.comFluid Attacks Advisory
- 2github.comGitHub Advisory
- 3github.comclaw-code Releases