Skip to content
MediumVulnerabilityLLM-specific

GHSA-4vp2-6q8c-pvq2: @anthropic-ai/claude-code has an Insecure Temporary File in /copy Command that Enables Response Disclosure and Symlink-Based File Write

Published
Record updated
View JSON
Affected
  • @anthropic-ai/claude-code >= 2.1.59, < 2.1.128
Fixed in
2.1.128
  • released May 4, 2026, 52 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

The @anthropic-ai/claude-code package's /copy command wrote responses to a hardcoded, predictable path (/tmp/claude/response.md) with no UID isolation, randomness, or symlink protection, and created the file world-readable (0644) in a world-traversable directory (0755). A local unprivileged user could read a privileged user's response, which may contain secrets or credentials, or pre-create the directory and plant a symlink so the privileged process overwrites an attacker-chosen file. Exploitation requires a local unprivileged user on the same system and a privileged user running /copy.

Mitigation

Users on standard Claude Code auto-update have already received the fix. Users performing manual updates are advised to update to the latest version.