CVE-2026-39861

Claude Code is an agentic coding tool. Prior to version 2.1.64, Claude Code's sandbox did not prevent sandboxed processes from creating symlinks pointing to locations outside the workspace. When Claude Code subsequently wrote to a path within such a symlink, its unsandboxed process followed the symlink and wrote to the target location outside the workspace without prompting the user for confirmation. This allowed a sandbox escape where neither the sandboxed command nor the unsandboxed app could independently write outside the workspace, but their combination could write to arbitrary locations, potentially leading to code execution outside the sandbox. Reliably exploiting this required the ability to add untrusted content into a Claude Code context window to trigger sandboxed code execution via prompt injection. Users on standard Claude Code auto-update have received this fix automatically. Users performing manual updates are advised to update to version 2.1.64 or later.
Configurations

Configuration 1 (hide)

cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*

History

23 Apr 2026, 18:36

Type Values Removed Values Added
CPE cpe:2.3:a:anthropic:claude_code:*:*:*:*:*:node.js:*:*
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 10.0
References () https://github.com/anthropics/claude-code/security/advisories/GHSA-vp62-r36r-9xqp - () https://github.com/anthropics/claude-code/security/advisories/GHSA-vp62-r36r-9xqp - Vendor Advisory
First Time Anthropic
Anthropic claude Code

21 Apr 2026, 01:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-21 01:16

Updated : 2026-04-23 18:36


NVD link : CVE-2026-39861

Mitre link : CVE-2026-39861

CVE.ORG link : CVE-2026-39861


JSON object : View

Products Affected

anthropic

  • claude_code
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CWE-61

UNIX Symbolic Link (Symlink) Following