Code Injection in Claude Code - CVE-2025-65099

 

Code Injection in Claude Code - CVE-2025-65099

Published: April 30, 2026


Vulnerability identifier: #VU128521
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-65099
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 Yarn config file handling when running yarn --version during Claude Code startup. A remote attacker can provide a specially crafted Yarn configuration to execute arbitrary code.

This can occur before the directory trust dialog is accepted, allowing a bypass of that trust check. User interaction is required.


Remediation

Install security update from vendor's website.

External links