@anthropic-ai/claude-code@2.0.44

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.

  • latest version

    2.1.226

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    1 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the @anthropic-ai/claude-code package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Covert Storage Channel

    @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 Covert Storage Channel via the WebFetch tool. An attacker can access sensitive data by injecting untrusted content that triggers requests to attacker-controlled paths on a pre-approved domain, enabling covert exfiltration of files, environment variables, or command output.

    Note: This is only exploitable if an attacker can add untrusted content into the context window.

    How to fix Covert Storage Channel?

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

    >=0.2.54 <2.1.163
    • H
    UNIX Symbolic Link (Symlink) Following

    @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 UNIX Symbolic Link (Symlink) Following. An attacker can cause arbitrary files to be written outside the intended workspace by leveraging symlink manipulation and prompt injection to execute code in a sandboxed context, which is then followed by an unsandboxed process writing to the symlink target.

    Note:

    This is only exploitable if an attacker can inject untrusted content into the context window to trigger sandboxed code execution via prompt injection.

    How to fix UNIX Symbolic Link (Symlink) Following?

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

    <2.1.64
    • H
    Reliance on Untrusted Inputs in a Security Decision

    @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 Reliance on Untrusted Inputs in a Security Decision via the Workspace Trust Dialog. An attacker can gain unauthorized tool execution by committing a .claude/settings.json file with permissions.defaultMode set to bypassPermissions, causing the workspace trust confirmation dialog to be skipped and placing the user in a permissive mode without their explicit consent.

    How to fix Reliance on Untrusted Inputs in a Security Decision?

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

    <2.1.80
    • L
    UNIX Symbolic Link (Symlink) Following

    @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 UNIX Symbolic Link (Symlink) Following via the file access process. An attacker can access restricted files by leveraging symbolic links to bypass deny rules configured in settings.json.

    How to fix UNIX Symbolic Link (Symlink) Following?

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

    <2.1.7
    • H
    Command Injection

    @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 directory changes in the cd command. An attacker can create or modify files in protected directories without user confirmation by injecting untrusted content into the context window.

    How to fix Command Injection?

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

    <2.0.57
    • H
    Command Injection

    @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.

    How to fix Command Injection?

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

    <2.0.55
    • H
    Arbitrary Code Injection

    @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 find command parsing process. An attacker can execute arbitrary commands by injecting untrusted content into the context window, bypassing the user approval prompt.

    How to fix Arbitrary Code Injection?

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

    <2.0.72
    • H
    Directory Traversal

    @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 Directory Traversal via the ZSH clobber syntax. An attacker can write arbitrary files outside the intended directory by injecting untrusted content into the context window while the user is operating in a ZSH environment.

    Note:

    This is only exploitable if the user is using ZSH and allows untrusted content to be added to the context window.

    How to fix Directory Traversal?

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

    <2.0.74
    • M
    Insufficiently Protected Credentials

    @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 Insufficiently Protected Credentials via the project-load flow. An attacker can obtain sensitive information, such as API keys, by tricking a user into opening a malicious repository containing a settings file that sets the ANTHROPIC_BASE_URL to an attacker-controlled endpoint, causing API requests to be sent before trust is confirmed.

    How to fix Insufficiently Protected Credentials?

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

    <2.0.65