Command Injection Affecting @anthropic-ai/claude-code package, versions <2.0.55


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.12% (32nd 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 Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ANTHROPICAICLAUDECODE-15248308
  • published8 Feb 2026
  • disclosed6 Feb 2026
  • credithackerone.com/nil221

Introduced: 6 Feb 2026

CVE-2026-25723  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade @anthropic-ai/claude-code to version 2.0.55 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 Command Injection via improper validation of commands containing piped sed operations with the echo command. An attacker can execute arbitrary system commands and write to sensitive directories by crafting malicious input, bypassing file write restrictions.

Note: This is only exploitable if the accept edits feature is enabled.

References

CVSS Base Scores

version 4.0
version 3.1