CVE-2025-59828
JavaScript vulnerability analysis and mitigation

Overview

Claude Code, an agentic coding tool, was found to have a security vulnerability (CVE-2025-59828) affecting versions prior to 1.0.39. The vulnerability was discovered and disclosed on September 24, 2025, specifically impacting installations using Yarn versions 2.0+ while users of Yarn Classic remained unaffected (GitHub Advisory).

Technical details

The vulnerability involves the automatic execution of Yarn plugins when running yarn --version command, which could lead to a bypass of the directory trust dialog in Claude Code. The plugins would execute before users could accept the risks of working in an untrusted directory. The vulnerability has been assigned a CVSS v4.0 base score of 7.7 (High) with the vector string 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 (GitHub Advisory).

Impact

The vulnerability could potentially lead to arbitrary code execution through plugin autoloading, compromising the security of the affected systems. The CVSS scoring indicates high impacts on confidentiality, integrity, and availability of the vulnerable system (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Claude Code version 1.0.39. Users with standard Claude Code auto-update enabled have automatically received the fix. Those performing manual updates are advised to update to the latest version immediately (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59834CRITICAL9.8
  • JavaScriptJavaScript
  • adb-mcp
NoNoSep 24, 2025
CVE-2025-59343HIGH8.7
  • JavaScriptJavaScript
  • tar-fs
NoYesSep 24, 2025
CVE-2025-59828HIGH7.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesSep 24, 2025
GHSA-xh92-rqrq-227vMEDIUM6.5
  • JavaScriptJavaScript
  • @mastra/mcp-docs-server
NoYesSep 24, 2025
CVE-2025-59426MEDIUM4.3
  • JavaScriptJavaScript
  • @lobehub/chat
NoYesSep 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management