Claude Code: TOCTOU Race in Edit Tool Allows File Writes Outside the Workspace
A TOCTOU race condition in Claude Code's Edit tool on macOS allows a sandboxed process to overwrite user-writable files outside the workspace if attacker-controlled code can execute inside the sandbox.