CVE-2025-59041
JavaScript vulnerability analysis and mitigation

Overview

CVE-2025-59041 affects Claude Code versions prior to 1.0.105, where a vulnerability in the git email configuration could lead to arbitrary code execution. The vulnerability was discovered by the NVIDIA AI Red Team and disclosed on September 9, 2025. The issue specifically affects the npm package @anthropic-ai/claude-code (GitHub Advisory).

Technical details

The vulnerability stems from improper control of code generation (CWE-94) where Claude Code executes commands templated with git config user.email at startup. The vulnerability has received a CVSS v4.0 base score of 8.7 (High), with the vector string CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N. This indicates network attack vector, low attack complexity, no privileges required, and passive user interaction required (GitHub Advisory).

Impact

The vulnerability allows attackers to execute arbitrary code before a user accepts the workspace trust dialog. The impact metrics indicate high severity across confidentiality, integrity, and availability of the vulnerable system, though with no impact on subsequent systems (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 1.0.105 of Claude Code. 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 (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-59041HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesSep 10, 2025
CVE-2025-58764HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesSep 10, 2025
CVE-2025-59049HIGH7.5
  • JavaScriptJavaScript
  • @mockoon/commons-server
NoYesSep 10, 2025
CVE-2025-59052HIGH7.1
  • JavaScriptJavaScript
  • @nguniversal/common
NoYesSep 10, 2025
CVE-2025-57520LOW2.1
  • JavaScriptJavaScript
  • decap-cms
NoNoSep 10, 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