CVE-2025-59536: Pre-Trust Code Execution in Anthropic Claude Code
- Vendor
- Anthropic
CVE-2025-59536 is a code-injection vulnerability in Anthropic Claude Code versions earlier than 1.0.111. Incorrect enforcement of the startup trust dialog allows attacker-controlled project configuration to trigger code execution before the user accepts the project trust prompt. An attack path uses repository-scoped settings to automatically enable project-defined Model Context Protocol (MCP) servers, causing attacker-specified commands to execute during startup. Exploitation requires a user to launch Claude Code in an untrusted project directory; accepting the trust dialog is not required.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary command execution in the security context of the user running Claude Code, bypassing the intended project-trust approval boundary. Depending on that user's permissions and available credentials, resulting compromise can include access to local source code and secrets, modification of projects or other accessible files, and execution of additional malicious software.
Mitigation
If you can’t patch tonight, do this now.
Until patched, do not launch Claude Code in untrusted project directories. Inspect repository-controlled agent settings and MCP server definitions before opening unfamiliar projects. Where untrusted projects must be examined, use an isolated, least-privileged environment without sensitive credentials or access to production resources. Configuration inspection and isolation are defense-in-depth measures, not substitutes for updating.
Remediation
Patch, then assume compromise.
Upgrade Claude Code to version 1.0.111 or later, preferably the latest supported release. Version 1.0.111 fixes the startup trust-dialog enforcement issue by delaying MCP startup until after the trust decision. Standard Claude Code auto-update delivers the fix automatically; manually maintained installations must be explicitly updated.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 6 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-59536 exploited in the wild?
- Yes. As of Nov 19, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-59536?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2025-59536, the earliest disclosed Feb 27, 2026.
- Is there a patch for CVE-2025-59536?
- Upgrade Claude Code to version 1.0.111 or later, preferably the latest supported release. Version 1.0.111 fixes the startup trust-dialog enforcement issue by delaying MCP startup until after the trust decision.
- What products are affected by CVE-2025-59536?
- Anthropic Claude Code.
- How severe is CVE-2025-59536?
- CVE-2025-59536 has a CVSS v4 score of 8.7 (High) and an EPSS score of 26.3% (98th percentile) as of Nov 19, 2026.
Recent activity
62 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.