Unsafe Dependency Resolution Affecting @anthropic-ai/claude-code package, versions <2.1.179


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.17% (7th 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 IDSNYK-JS-ANTHROPICAICLAUDECODE-21201048
  • published18 Oct 2026
  • disclosed15 Oct 2026
  • creditOr Nevo Michrowski

Introduced: 15 Oct 2026

NewCVE-2026-86063  (opens in a new tab)
CWE-494  (opens in a new tab)
CWE-829  (opens in a new tab)

How to fix?

Upgrade @anthropic-ai/claude-code to version 2.1.179 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 Unsafe Dependency Resolution via the plugin install flow, which uses git checkout with a marketplace-pinned commit SHA without verifying that the resulting HEAD matches the pinned SHA. An attacker who controls a plugin's upstream repository can create a branch named identically to the pinned 40-character SHA, causing the checkout to silently resolve to the attacker's branch tip instead of the reviewed commit, resulting in attacker-controlled code being installed while bypassing the pinned hash check.

Note: This is only exploitable if a user installs a plugin pinned to a specific hash and the plugin source is hosted on a git host that permits SHA-shaped branch names.

CVSS Base Scores

version 4.0
version 3.1