News · DiggingBeagle record

Claude Code showed a workspace path while approving an external symlink write

A researcher reproduced a VS Code permission dialog that omitted the external destination of a symlinked write. Consent was requested, but the requested name obscured the actual target.

Published
Nov 17, 2026

The report

A file write through helpdocs/test.txt looked like an ordinary edit inside a Claude Code project. In a November 11 demonstration, however, helpdocs was a symbolic link to a directory outside that project, and the VS Code extension's approval dialog did not show the resolved destination. The extension did ask for permission. The research finding concerns what the person was being asked to approve, not an operation performed without any prompt.

The name on the prompt was not the destination

Carl Pearson of UltraStrike Cybersecurity arranged a pre-existing workspace symlink and then observed the extension asking for approval before writing through it. The displayed name described the path supplied to the tool, not the filesystem object to which that path resolved. As a result, a person who reviewed only the dialog could mistake an outside-workspace write for a project-local one. The first-person demonstration establishes that presentation mismatch for a write operation, not a general ability to read arbitrary private files or bypass operating-system permissions.

This mechanism is different from the earlier Claude Code symlink race. In that case, an attacker needed to replace a checked path before a later filesystem operation, and Anthropic listed version 2.1.129 as its repair. Here the symlink already existed when approval was requested; the path could remain unchanged, but the user still lacked a truthful description of the final destination. Solving a race does not necessarily make the consent dialog informative, and improving a dialog alone does not close a race between checking and opening.

Pearson reported the VS Code behavior in extension 2.1.322 and said Anthropic closed his HackerOne submission as informative, reasoning that the presence of a permission request was sufficient. The full private triage correspondence has not been independently inspected. More than 29 million cumulative marketplace installations were cited by the researcher, but that number says nothing about how many active deployments included a relevant symlink or suffered harm. Neither a malicious campaign nor a completed credential theft was documented.

What authorization would need to bind

A defensible approval flow should make the requested path and its resolved target visible, explicitly identify cross-workspace effects, and enforce the approved filesystem-object scope at the moment of use. An agent influenced by a hostile repository could plausibly request an unexpected write, but that is an escalation scenario rather than an observed attack in this test. Permission-dialog accuracy and executable filesystem isolation are complementary controls: one informs the human choice, while the other limits what that choice can actually authorize. The canonical investigation records the reported version, evidence and remaining read/delete regression questions.

Research behind this