Code Injection in Claude Code - CVE-2025-59536

 

Code Injection in Claude Code - CVE-2025-59536

Published: April 30, 2026


Vulnerability identifier: #VU128525
CSH Severity: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2025-59536
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
Claude Code
Software vendor:
Anthropic

Description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper control of code generation in the startup trust dialog implementation when opening Claude Code in an untrusted directory. A remote attacker can trick the user into starting Claude Code in a crafted project directory to execute arbitrary code.

User interaction is required to start Claude Code in an untrusted directory.


Remediation

Install security update from vendor's website.

External links