Pre-trust code execution in Anthropic Claude Code
CVE-2025-59536 is a code-injection vulnerability in Anthropic Claude Code versions earlier than 1.0.111 caused by incorrect enforcement of the startup trust dialog. Attacker-controlled project configuration can cause project-supplied commands to execute before the user accepts the trust prompt. An identified exploitation path uses repository-scoped MCP settings to automatically enable and start an attacker-defined MCP server before project trust is established. Exploitation requires a user to start Claude Code in an untrusted directory and can compromise the developer environment.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Arbitrary commands can execute with the privileges of the user running Claude Code without approval of the project's startup trust dialog. This can compromise the developer account and expose accessible source code, local files, and credentials. Further compromise depends on the account's permissions and access to other systems.
If you can’t patch tonight, do this now.
Do not start vulnerable Claude Code installations in untrusted project directories. Inspect repository-controlled configuration for unexpected commands and MCP server definitions before launching the tool. Where untrusted projects must be evaluated, use an isolated, least-privileged environment without sensitive credentials or unnecessary access to internal systems.
Patch, then assume compromise.
Update Claude Code to version 1.0.111 or later, preferably the latest supported release. Version 1.0.111 fixes this vulnerability by delaying MCP startup until after the startup trust dialog. Standard auto-update installations receive the fix automatically; manually maintained installations must be updated explicitly.
3 exploits validated by Mallory's analysis. Hidden: 6 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
61 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.