Incident report

Agentic Coding CLI Pre-Trust Repository Hook and MCP Config Auto-Execution RCE

CVE-2025-59536 (published October 3, 2025, disclosed by Check Point Research) affected Anthropic Claude Code versions prior to `1.0.111`. A flaw in startup trust-dialog sequencing allowed malicious hooks or MCP server definitions embedded inside a cloned repository's configuration files to trigger execution before the user explicitly approved trusting the directory. Simply cloning and opening an untrusted open-source repository in the coding CLI exposed developers to arbitrary local command execution. Anthropic patched the initialization sequence in v1.0.111 to guarantee zero hook or MCP execution prior to explicit trust confirmation.

Incident record

Reported
Severity
Critical
Vector
Supply Chain
Affected system type
Terminal Agentic Coding CLIs
Reference
CVE-2025-59536
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-59536

Inspect in Interactive Incidents Hub

Defensive lesson

Enforce hard pre-trust gates that prevent any repository hook, plugin, or MCP server definition from initializing before explicit user consent.

Referenced techniques