BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2026-39861 in Anthropic Claude Code

Critical 10.0

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.110.0
CVSS v47.7
EPSS0.8%
EPSS percentile55th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Anthropic Claude Code < 2.1.64

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-39861
BreachSpider IDBS-2026-GLOBAL-151816-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Published2026-04-21
Last modified2026-10-26
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-22: Path Traversal

Attacker manipulates file path inputs to access files outside the intended directory.

CWE-61: CWE-61

Related attack patterns (CAPEC)

CAPEC-27 Leveraging Race Conditions via Symbolic Links via CWE-61

CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic via CWE-22

CAPEC-76 Manipulating Web Input to File System Calls via CWE-22

CAPEC-78 Using Escaped Slashes in Alternate Encoding via CWE-22

CAPEC-79 Using Slashes in Alternate Encoding via CWE-22

Show all 6

CAPEC-126 Path Traversal via CWE-22

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2026-39861 affects Claude Code versions prior to 2.1.64, where sandboxed processes can create symlinks pointing to locations outside the workspace, allowing unsandboxed processes to write to these external locations without user confirmation.

An attacker could exploit this vulnerability by creating a symlink within the Claude Code workspace that points to a sensitive file or directory outside the workspace. When Claude Code writes to a path within this symlink, the write operation would affect the external target, potentially leading to data leakage or unauthorized modifications.

Questions

What is CVE-2026-39861?

CVE-2026-39861 affects Claude Code versions prior to 2.1.64, where sandboxed processes can create symlinks pointing to locations outside the workspace, allowing unsandboxed processes to write to these external locations without user confirmation.

What is the CVSS score for CVE-2026-39861?

CVE-2026-39861 has CVSS 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.8%.

Is CVE-2026-39861 actively exploited?

No confirmed active exploitation of CVE-2026-39861 as of 2026-11-03.

How do I remediate CVE-2026-39861?

Priority: IMMEDIATE.

What systems are affected by CVE-2026-39861?

CVE-2026-39861 affects Anthropic Claude Code.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Anthropic","product":"Claude Code","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-10-26.