Insecure Temporary File Affecting @anthropic-ai/claude-code package, versions >=2.1.59 <2.1.128


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th 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 Insecure Temporary File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ANTHROPICAICLAUDECODE-17660545
  • published27 Jun 2026
  • disclosed25 Jun 2026
  • creditUnknown

Introduced: 25 Jun 2026

NewCVE-2026-46406  (opens in a new tab)
CWE-377  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade @anthropic-ai/claude-code to version 2.1.128 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 Insecure Temporary File via the /copy command. An attacker can access sensitive response data or overwrite arbitrary files by pre-creating the /tmp/claude/response.md path as a symlink and having a privileged user execute the command. This is only exploitable if a local unprivileged user is present on the same system and a privileged user runs the /copy command.

References

CVSS Base Scores

version 4.0
version 3.1