Path Traversal in @anthropic-ai/claude-code (CVE-2026-55607)
Summary
Path traversal in @anthropic-ai/claude-code (CVE-2026-55607). Successful exploitation can lead to full system takeover. Mitigation: upgrade to 2.1.163 or later.
Original description
The description as published by the source.
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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-55607 has been found in @anthropic-ai/claude-code.
Successful exploitation can lead to full system takeover. CVSS score: 8.8/10.
What to do: upgrade @anthropic-ai/claude-code to 2.1.163 or later.
If unsure, ask your IT team or search "@anthropic-ai/claude-code CVE-2026-55607" on the vendor's site.
CVE-2026-55607 (@anthropic-ai/claude-code) — CWE-22 / CVSS v3 8.8
Attack vector: remote (network-reachable) / unauthenticated
Patched: 2.1.163 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
Path traversal (CWE-22) exists in @anthropic-ai/claude-code.
Check the vendor advisory for the affected versions of @anthropic-ai/claude-code.
Severity: High (CVSS 8.8/10). Successful exploitation can lead to full system takeover.
Update to 2.1.163.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r '@anthropic-ai/claude-code' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r '@anthropic-ai/claude-code' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
@anthropic-ai/claude-codeを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply patch patch
Upgrade @anthropic-ai/claude-code to 2.1.163ステージング環境で 2.1.163 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- web github.com
- web github.com