Documented Incident · INC-2025-59536 · Critical severity

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 dossier metadata

Case ID
INC-2025-59536
Classification
Incident
Date
Severity
Critical
Sector
Software Development & AI Tooling
Attack vector
Supply Chain
System type
Terminal Agentic Coding CLIs
CVE / reference
CVE-2025-59536
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-59536

Inspect INC-2025-59536 in Interactive Incidents & Cases Hub

Defensive takeaway

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

Mapped AI security techniques

Mapped defensive controls

Source citation records