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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (20th 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-13299835
  • published6 Oct 2025
  • disclosed3 Oct 2025
  • creditavivdon

Introduced: 3 Oct 2025

CVE-2025-59536  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade @anthropic-ai/claude-code to version 1.0.111 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 the startup trust dialog implementation. An attacker can cause arbitrary code to be executed by convincing a user to open the application in an untrusted directory before accepting the trust dialog. This is only exploitable if the user starts the application in an untrusted directory and has not yet accepted the trust dialog.

References

CVSS Base Scores

version 4.0
version 3.1