mcp-cve-project

CVE-2025-59536 | Claude Code startup trust dialog bypass (pre-consent code execution) | High |

CVE Information

Field Value
CVE / NVD CVE-2025-59536
EPSS score 0.302270000 (FIRST EPSS, 2026-06-30)
Date (index) 2025-10-03
Affected product (index) Claude Code (Anthropic agentic coding tool)
GHSA ID GHSA-4fgq-fpq9-mr3g
OWASP MCP Top 10 (2025) MCP04 — Software Supply Chain Attacks & Dependency Tampering
Published / disclosed 2025-10-03
Ecosystem npm
Component Claude Code
CVSS score High — 8.7 — CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X (NVD CVSS 4.0)
CWE CWE-94
Affected versions Before 1.0.111 (per NVD)
Fixed versions 1.0.111 and later (per NVD)
Fix status Patched (per NVD description)
Exploit status Public advisory (GitHub reviewed)
Notes Details below are aligned to the English NVD description at indexing time; re-check NVD for CNA updates.

CVE Breakdown


What is the vulnerability?

Claude Code is an agentic coding tool. Versions before 1.0.111 were vulnerable to Code Injection due to a bug in the startup trust dialog implementation. Claude Code could be tricked to execute code contained in a project before the user accepted the startup trust dialog. Exploiting this requires a user to start Claude Code in an untrusted directory. Users on standard Claude Code auto-update will have received this fix automatically. Users performing manual updates are advised to update to the latest version. This issue is fixed in version 1.0.111.

Attack prerequisites / exposure

Depends on deployment: many MCP issues require a reachable HTTP/SSE listener, a malicious remote MCP server, a poisoned project/workspace config, or a victim opening attacker-influenced content. Treat developer workstations and shared CI runners as high-value targets when MCP servers run with host access.

CVE is because of what bug?

See the NVD description and linked references for the upstream root cause; CWE rows above summarize the weakness mapping published by NVD.

MCP-specific impact / why it matters

MCP extends an agent’s reach into tools, hosts, and cloud APIs. Failures in transport authentication, logging, URL validation, session binding, or local config loading frequently become RCE, credential theft, SSRF, or session hijacking in MCP-shaped deployments.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here after reviewing the linked upstream commit / tag diff (do not paste weaponized payloads).

Fix / Remediation

Upgrade to vendor-fixed versions where available, reduce network exposure (bind to localhost, require auth on HTTP transports), and apply standard MCP deployment hygiene (tool allowlists, egress controls, separate secrets from logs).

Upstream fix (open source)