Case · 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

Scope

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.

At a glance

Mechanism and trust boundary

  1. 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

  2. 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

Link to claim
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

Link to claim
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

Link to claim

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

  1. Dec 2, 2026 · Published version · first publication · revision 300