UNIX symbolic link following in Claude Code - CVE-2026-39861
Published: April 30, 2026
Claude Code
Anthropic
Description
The vulnerability allows a remote attacker to write arbitrary files outside the workspace.
The vulnerability exists due to symlink following in the sandbox file write handling when writing to a path within an attacker-created symlink. A remote attacker can create a symlink pointing outside the workspace and cause Claude Code to write through it to write arbitrary files outside the workspace.
Reliable exploitation requires the ability to add untrusted content into a Claude Code context window to trigger sandboxed code execution via prompt injection.