{"id":"CVE-2025-59828","published":"2025-09-24T19:30:09Z","modified":"2025-09-24T19:49:14Z","title":"Claude Code Vulnerable to Arbitrary Code Execution via Plugin Autoloading with Specific Yarn Versions","vendor":"anthropics","product":"claude-code","tier":"tail","description":{"text":"Claude Code is an agentic coding tool. Prior to Claude Code version 1.0.39, when using Claude Code with Yarn versions 2.0+, Yarn plugins are auto-executed when running yarn --version. This could lead to a bypass of the directory trust dialog in Claude Code, as plugins would be executed prior to the user accepting the risks of working in an untrusted directory. Users running Yarn Classic were unaffected by this issue. This issue has been fixed in version 1.0.39. 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00366,"percentile":0.31066,"provenance":"source"},"cwes":[{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"},{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/anthropics/claude-code/security/advisories/GHSA-2jjv-qf24-vfm4","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":6.21},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"anthropics","affectedVersions":[{"vendor":"anthropics","product":"claude-code","versions":["< 1.0.39"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-09-24T19:48:56.366741Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@anthropic-ai/claude-code","vulnerableRanges":["<1.0.39"],"patched":["1.0.39"],"from":["GHSA-2jjv-qf24-vfm4"],"provenance":"source"}],"summary":{"text":"Claude Code, Anthropic's agentic coding tool, contains a flaw in which Yarn plugins are auto-executed when Claude Code runs yarn --version under Yarn versions 2.0 and later, before the user has accepted the directory trust dialog. An attacker who can get a malicious Yarn plugin into a directory a user opens can execute arbitrary code with user interaction required, namely the user working in that untrusted directory, and no authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:52:55Z"},"euvd":{"id":"EUVD-2025-31043","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-55284","published":"2025-08-16","fixed":"1.0.4","kev":false},{"cve":"CVE-2025-54795","published":"2025-08-05","fixed":"1.0.20","kev":false},{"cve":"CVE-2025-52882","published":"2025-06-24","fixed":"1.0.24","kev":false,"link":{"from":"CVE-2025-52882","to":"CVE-2025-59828","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:@anthropic-ai/claude-code","fromFixed":"1.0.24","toFixed":"1.0.39","daysApart":92}]}},{"cve":"CVE-2025-59828","published":"2025-09-24","fixed":"1.0.39","kev":false},{"cve":"CVE-2025-65099","published":"2025-11-19","fixed":"1.0.39","kev":false},{"cve":"CVE-2025-66032","published":"2025-12-03","fixed":"1.0.93","kev":false},{"cve":"CVE-2025-58764","published":"2025-09-10","fixed":"1.0.105","kev":false}],"package":"npm:@anthropic-ai/claude-code"}}