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
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
- Supply Chain Compromise: AI Agent Tool AML.T0010.005
- User Execution: Poisoned AI Agent Tool AML.T0011.002
- Command and Scripting Interpreter AML.T0050
- Modify AI Agent Configuration AML.T0081
- Machine Compromise: Local AI Agent AML.T0112.000
- Event Triggered Execution AML.T0142