Directory Traversal Affecting claude-cli package, versions <2.1.206-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.55% (43rd 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-MINIMOSLATEST-CLAUDECLI-17960216
  • published14 Jul 2026
  • disclosed29 Jun 2026

Introduced: 29 Jun 2026

CVE-2026-55607  (opens in a new tab)
CWE-22  (opens in a new tab)
CWE-59  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade Minimos:latest claude-cli to version 2.1.206-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream claude-cli package and not the claude-cli package as distributed by Minimos. See How to fix? for Minimos:latest relevant fixed versions and status.

Claude Code is an agentic coding tool. From 2.1.38 until 2.1.163, Claude Code's worktree handling allowed creation of worktrees named ".git" and navigation to worktrees outside the sandbox context, enabling git directory confusion attacks. By exploiting symlink manipulation and git fsmonitor execution during worktree operations, an attacker could overwrite files in the user's home directory (such as .zshenv), leading to code execution outside of seatbelt sandbox restrictions. Reliably exploiting this required the user to clone a malicious repository containing prompt injection content and run Claude Code against it. This vulnerability is fixed in 2.1.163.