Untrusted search path in Claude Code - CVE-2025-59828
Published: April 30, 2026
Claude Code
Anthropic
Description
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper trust management in plugin autoloading and Yarn configuration handling when running yarn --version in an untrusted directory. A remote attacker can place a specially crafted Yarn configuration file to execute arbitrary code.
User interaction is required because exploitation occurs before the user accepts the risks of working in an untrusted directory.