Arbitrary Code Injection Affecting @anthropic-ai/claude-code package, versions <1.0.39


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (24th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ANTHROPICAICLAUDECODE-14073012
  • published21 Nov 2025
  • disclosed19 Nov 2025
  • creditBenjamin Faller, Redguard AG, Michael Hess

Introduced: 19 Nov 2025

NewCVE-2025-65099  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade @anthropic-ai/claude-code to version 1.0.39 or higher.

Overview

@anthropic-ai/claude-code is an Use Claude, Anthropic's AI assistant, right from your terminal. Claude can understand your codebase, edit files, run terminal commands, and handle entire workflows for you.

Affected versions of this package are vulnerable to Arbitrary Code Injection via yarn plugins. An attacker can execute arbitrary code by convincing a user to start the application in an untrusted directory while using Yarn 3.0 or above, before the user accepts the startup trust dialog. This is only exploitable if the user initiates the application in an untrusted directory and is using Yarn version 3.0 or higher.

References

CVSS Base Scores

version 4.0
version 3.1