Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-65099: CWE-94: Improper Control of Generation of Code ('Code Injection') in anthropics claude-code

0
High
VulnerabilityCVE-2025-65099cvecve-2025-65099cwe-94
Published: Wed Nov 19 2025 (11/19/2025, 17:35:17 UTC)
Source: CVE Database V5
Vendor/Project: anthropics
Product: claude-code

Description

Claude Code is an agentic coding tool. Prior to version 1.0.39, when running on a machine with Yarn 3.0 or above, Claude Code could have been tricked to execute code contained in a project via yarn plugins before the user accepted the startup trust dialog. Exploiting this would have required a user to start Claude Code in an untrusted directory and to be using Yarn 3.0 or above. This issue has been patched in version 1.0.39.

AI-Powered Analysis

AILast updated: 11/26/2025, 18:56:15 UTC

Technical Analysis

CVE-2025-65099 is a code injection vulnerability categorized under CWE-94, affecting anthropics' Claude Code, an agentic coding tool designed to assist developers. The vulnerability exists in versions prior to 1.0.39 when Claude Code is executed on systems with Yarn 3.0 or later. Yarn plugins can contain executable code that Claude Code processes before the user has accepted the startup trust dialog, which is intended as a security measure to prevent execution of untrusted code. If a user launches Claude Code in an untrusted directory containing malicious Yarn plugins, the tool can be tricked into executing arbitrary code embedded in those plugins. This execution occurs without prior user consent, potentially allowing attackers to compromise the host system. The attack vector requires the user to start Claude Code in a malicious project directory and interact with the startup process, but no authentication is needed. The vulnerability impacts confidentiality, integrity, and availability by enabling arbitrary code execution, which could lead to data theft, system compromise, or denial of service. The issue has been addressed and patched in version 1.0.39 of Claude Code. No public exploits have been reported to date, but the vulnerability's characteristics warrant prompt remediation. The CVSS 4.0 score of 7.7 reflects the network attack vector, low attack complexity, required user interaction, and high impact on all security properties.

Potential Impact

For European organizations, this vulnerability poses a significant risk especially to software development teams and environments that utilize Claude Code in conjunction with Yarn 3.0 or higher. Successful exploitation could lead to unauthorized code execution, resulting in potential data breaches, intellectual property theft, or disruption of development workflows. The integrity of codebases could be compromised, undermining trust in software supply chains. Additionally, availability could be affected if attackers deploy destructive payloads or ransomware. Organizations with remote or distributed development environments are particularly vulnerable, as attackers could lure developers into opening malicious project directories. The risk is heightened in sectors with high reliance on software development tools, such as finance, telecommunications, and technology firms prevalent across Europe. Although no known exploits are currently active in the wild, the ease of exploitation through user interaction and the widespread use of Yarn in modern JavaScript development increase the likelihood of targeted attacks if unpatched.

Mitigation Recommendations

European organizations should immediately upgrade anthropics Claude Code to version 1.0.39 or later to eliminate this vulnerability. Until upgrading is complete, developers must avoid launching Claude Code in untrusted or unknown project directories, especially those containing Yarn plugins. Implement strict access controls and monitoring on development environments to detect unusual execution patterns or unauthorized code execution. Educate developers about the risks of opening untrusted projects and the importance of verifying the source of Yarn plugins. Employ endpoint detection and response (EDR) solutions capable of identifying suspicious process behaviors related to code injection. Integrate software composition analysis tools to monitor dependencies and plugins for malicious content. Additionally, consider sandboxing development environments or using virtual machines to isolate potentially risky operations. Regularly review and update security policies governing development tools and workflows to incorporate lessons learned from this vulnerability.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2025-11-17T20:55:34.692Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 691e026693c808727dc91d1f

Added to database: 11/19/2025, 5:46:14 PM

Last enriched: 11/26/2025, 6:56:15 PM

Last updated: 1/7/2026, 8:52:24 AM

Views: 34

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats