Fluid Attacks reports that claw-code loaded project MCP definitions and launched stdio programs while discovering tools. The loader removed untrusted project hooks, but did not apply an equivalent restriction to executable MCP configuration. Running the CLI from a prepared repository could therefore execute a program with the invoking user's privileges…
Inspect the ClaimsCase · DiggingBeagle record
claw-code started project-defined MCP programs before workspace trust approval
Project-sourced stdio MCP configuration was launched during tool discovery without an equivalent workspace-trust check, before provider validation.
Published by DiggingBeagle:
Public disclosure: Nov 30, 2026
A user invokes claw-code in an attacker-controlled project directory containing executable MCP configuration.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- mitigation available
- AI role
- AGAINST AI
Basis and provenance
The discoverer supplies the configuration-to-process path and affected releases, with a workaround but no confirmed fixed release. No production compromise or product-wide exploit prevalence is established. Impact remains unscored: the evidence describes conditional or study-specific effects, and this pack supplies no calibrated mapping from those effects to a numeric impact band. Evidence strength reflects the stated provenance and limitations, not the number of sources.
Assessed Dec 2, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-DEC02-CLAW-CONFIG-1 · CLM-DEC02-CLAW-CONFIG-2 · CLM-ENR299-CLAW-STARTUP · Fluid Attacks Miviejo: claw-code project MCP command execution
At a glance
Executable configuration needs a trust decision before startup discovery; stripping one execution mechanism does not secure another.
Read the implicationsNo field exploitation or deployed patch is established by the source.
Limits and uncertaintyFull account
Fluid Attacks reports that claw-code loaded project MCP definitions and launched stdio programs while discovering tools. The loader removed untrusted project hooks, but did not apply an equivalent restriction to executable MCP configuration. Running the CLI from a prepared repository could therefore execute a program with the invoking user's privileges before provider-credential validation or a model prompt.
The advisory traces the path in versions 0.1.11 and 0.1.16 and covers the intervening range. It proposes rejecting project-sourced commands or requiring explicit workspace trust. It does not identify a shipped fixed release. The required user action is starting claw in the untrusted directory; merely viewing a repository is not the demonstrated trigger.
The dangerous decision happens before the answer
The attacker supplies repository configuration; the user supplies the action of starting the CLI there. Tool discovery then promotes the project's stdio MCP definition into an operating-system process under the user's authority. Because that happens before provider credential validation, absence of a valid model API key does not remove the reported startup exposure. Stripping project hooks leaves a different executable configuration path intact.
This differs from mcp-use: claw-code treats workspace configuration as launch authority, whereas mcp-use accepts code into an enabled executor that is not a secure sandbox. Both need a real execution boundary, but they have different triggers and neither implies that an unrelated Claude Code or OpenClaw installation is affected.
Mechanism and trust boundary
- 01
Repository configuration enters startup
An attacker-controlled project supplies stdio MCP definitions; the user starts the affected CLI in that directory.
Boundary: untrusted workspace configuration -> client startup
- 02
Tool discovery launches a process
The reported startup path launches the configured executable before provider validation, under the user's operating-system privileges.
Boundary: configuration data -> process execution
Claims & evidence
CLM-DEC02-CLAW-CONFIG-1Project-sourced stdio MCP configuration was launched during tool discovery without an equivalent workspace-trust check, before provider validation.supported
Basis: reported finding
- supportsFluid Attacks Miviejo: claw-code project MCP command executionprimary disclosure
Description; Root Cause; source-to-sink path
CLM-DEC02-CLAW-CONFIG-2The advisory identifies affected versions 0.1.11-0.1.16 and provides a workaround rather than a confirmed fixed release.supported
Basis: reported finding
- supportsFluid Attacks Miviejo: claw-code project MCP command executionprimary disclosure
Summary; Solution and Workaround; Timeline
CLM-ENR299-CLAW-STARTUPThe disclosed sequence reaches project-defined stdio MCP startup before provider credential validation, so the reported behavior does not require a successful model inference request.supported
Basis: reported finding
- supportsFluid Attacks Miviejo: claw-code project MCP command executionprimary disclosure
Root Cause and source-to-sink path: configuration loading, tool discovery and provider validation
Implications
Executable configuration needs a trust decision before startup discovery; stripping one execution mechanism does not secure another.
Controls and mitigations
- Do not launch affected versions inside untrusted repositories with project MCP configuration. Inspect or remove that configuration in an isolated copy before starting the client.
- Gate every project-controlled executable mechanism on workspace trust; checking hooks alone leaves MCP startup outside the gate.
Unknowns and contradictions
- No field exploitation or deployed patch is established by the source.
Sources and citation
Material revision history
- Dec 2, 2026 · Published version · first publication · revision 300