Back to Explore
NewsVibeFix editorialUpdated Nov 30, 2026

Claude Code's VS Code Prompt Hides Where Symlinks Really Point — and Anthropic Won't Call It a Bug

On 11 Nov 2026 researcher Carl Pearson showed that Anthropic's official Claude Code VS Code plugin hides where symlinks really point: the approval dialog shows a workspace path while the file lands outside it. Anthropic closed his HackerOne report as informative and calls it not a vulnerability — even though the CLI got the same flaw fixed after Adversa AI's May 2026 report. Version 2.1.322 was still unpatched at publication.

Real photograph of a blue padlock standing on a laptop keyboard (illustrative photo)

On 11 November 2026, security researcher Carl Pearson published a finding on the UltraStrike blog: Anthropic's official Claude Code plugin for VS Code asks users for permission while giving them a false address. The agent wants to write a file into a folder outside the workspace, but the approval dialog shows only a path inside the workspace, looking harmless. The user clicks approve, thinking they have allowed a write inside their own project, when they have actually allowed a write outside it. Pearson calls this a workspace escape. Anthropic's response is that it is not a vulnerability. One side calls it a security issue, the other says it is not — this article is about what that argument is really about, and what you should do to protect your own machine before it is settled.

First, the scale, so nobody dismisses this as a corner case. The Claude Code VS Code plugin is Anthropic's official plugin: install it in the editor and you can use Claude Code directly. By publication time it had more than 29 million installs on the marketplace. That figure comes from UltraStrike's article and was repeated in Cyber Security News' follow-up on 16 November. Twenty-nine million installs means this is not an obscure bug in a niche tool — it is a blind spot in the approval flow of a mainstream tool that tens of thousands of developers use every day. More importantly, the trigger is not exotic at all: all it takes is one symlink in your project pointing outside the workspace. And symlinks are everywhere in real development environments.

1. What happened: a reproduction that takes under a minute

Pearson's reproduction is unsettlingly simple. In his test workspace he placed a folder called helpdocs, which was actually a symlink pointing to a location outside the workspace. He then asked Claude Code to write a file called test.txt inside helpdocs. The plugin popped up a permission dialog showing the path helpdocs/test.txt inside the workspace — entirely normal-looking. But the terminal overlay gave it away: helpdocs was not in the workspace at all, it was a link pointing outside, and test.txt would actually land outside the workspace. The dialog carried no marker and no hint that the file would land elsewhere.

A symlink needs one line of explanation: it is a shortcut in the filesystem, one path pointing at another real location. Git supports symlinks, and they are all over macOS and Linux — in node_modules, in config directories, in shared toolchains. Normally, a link points where it points and the file lands where the link points, and that is fine. The problem is at the moment of approval: the Claude Code plugin detected the access, decided it was worth asking the user first, and then hid the most important piece of information when it asked — where the file would actually go. The user sees a path inside the workspace and approves something else. It is like being handed a contract to sign where the address on the page is A, the address that takes effect is B, and you never learn that B exists.

At publication time, the issue was still present in the latest plugin version, 2.1.322. Pearson had reported it on 22 October through Anthropic's HackerOne program, and Anthropic concluded it was not a vulnerability, closing the report as informative. UltraStrike's post prints the report date as "10/22/2206", an obvious typo for 2026, and this article reads it as 22 October 2026. That means nearly three weeks passed between the report and publication with no fix shipped for it. If you use this plugin today, check which version you have installed before deciding whether to follow the self-checks in section six — this article only vouches for the state of things on 11 November, not for today's build.

2. The May precedent: the CLI had the same flaw, and it was already fixed once

The most troubling part of this story is that it is not the first time. In May 2026, security firm Adversa AI published research showing that the Claude Code CLI had exactly the same display flaw: when the agent tried to reach a file outside the workspace through a symlink, the approval prompt showed the workspace-relative path. A link at ./link pointing to /etc/ would produce a prompt showing ./link/passwd when the agent asked for ./link/passwd, never mentioning the real /etc/passwd. A user glancing at it would think it was just a file in the project, click approve, and actually allow access to a system directory. Adversa tested more than Claude Code — Cursor, Copilot, Grok Build and Antigravity showed the same kind of display mismatch, five tools with one flaw — which says that "the approval dialog reports a false address" was a common ailment among AI coding tools at the time.

Anthropic's reaction to Adversa's report was the same: it did not consider the report a security issue. But according to Adversa, Anthropic quietly fixed the CLI a few weeks after receiving it. Today's Claude Code CLI, when a symlink resolves outside a trusted folder, shows the resolved real path and warns the user explicitly that the operation involves a link outside the trusted folder. UltraStrike's article includes a screenshot of the CLI as a comparison: the real path is spelled out, and the warning sits in plain view. The fix exists, the code exists, the approach is proven — it just never made it into the VS Code plugin. Pearson writes it plainly: he had assumed that once the CLI was fixed, the plugin would have been updated along with it. He tested it, and the plugin was still behaving the way the CLI did before May.

This detail deserves a pause, because it moves the story from a technical oversight to a process oversight. A flaw was found in the CLI, acknowledged — at least by a quiet fix — and verified, and then the same flaw survived for half a year in another client of the same product. That suggests that when Anthropic fixes a vulnerability, there is likely no checklist that says "check every client". The CLI and the plugin are two codebases, two teams, two release trains; one side got fixed and nobody remembered the other. For users, the lesson is practical: you cannot assume the plugin is fixed because the CLI is fixed. Different clients can sit at different security states for a long time. Checking the version — and which client you are on — is your own job.

3. Anthropic's case: the prompt itself is enough, and symlinks are out of scope

Anthropic's reply to Pearson has three layers, and each is worth taking apart, because they expose how differently the vendor and the researcher understand a "security boundary". First, Anthropic says the permission prompt itself is sufficient, and the information displayed in the prompt is not part of the security control. In plain language: we ask you as a matter of process, but real security does not rest on the line of text you see. Second, Anthropic says symlinks are out of scope for Claude Code's permission threat model. Third, Anthropic's trust model is that once a user opens a workspace, they trust that workspace's filesystem, including every symlink inside it.

UltraStrike answers all three, and the answers hold up. On the first: if the text in the prompt is not part of the security control, why show a prompt at all? A prompt exists for exactly one reason — so the user can make an informed decision. Whether the decision is right depends entirely on whether the prompt's information is accurate. A prompt that hides the key fact is worse than no prompt: with no prompt, the user at least knows they never checked; with a prompt, the user wrongly believes they did check, and clicks approve with confidence. The security field has a name for this — a false sense of security — and it is more dangerous than a visible risk.

On the second: Anthropic says symlinks are out of scope, but UltraStrike notes that Anthropic's public HackerOne program guide does not appear to list that exclusion. If the threat model's boundaries are held internally and never published, researchers and users have no way to tell what is in scope and what is out. More importantly, the same company's CLI now shows the resolved path and warns about symlinks — if symlinks were truly out of the threat model, why fix the CLI at all? The action and the statement do not match, and the action is more believable.

The rebuttal to the third layer is the most interesting. Pearson asks a simple question: if the workspace is fully trusted, why prompt for permission at all when traversing a workspace symlink? A prompt implies a security boundary — it implies that "inside the workspace" and "outside the workspace" are two different things. If the vendor itself thinks it is worth asking when a link is crossed, it has already conceded that the boundary exists; and once the boundary is conceded, there is no reason not to tell the user the real location when asking. Trusting the workspace and telling the user the truth do not conflict — telling the truth is the precondition for trusting the workspace.

4. Do not confuse it with the other flaw: the 9 November one is already fixed

The same week brought another Claude Code security item that is easy to confuse with this one, so the two need to be kept apart. On 9 November 2026, the GitHub Advisory Database published GHSA-5xjx-9qx6-jcrv, corresponding to CVE-2026-88968: in Claude Code versions before 2.1.251, the Edit tool validated a target path using a point-in-time pathname resolution that was not bound to the underlying directory inodes, so an attacker could atomically replace a parent directory inside the workspace with a symlink after validation and before the write, making the unsandboxed Edit implementation overwrite a file outside the workspace. It scores 7.7 on CVSS — high — affects macOS, and requires the attacker to already run code inside the Bash sandbox, for example through a malicious repository or a dependency script.

The difference must be nailed down: the 9 November issue is a race-condition vulnerability with an ID, a score and a fixed version — upgrading to 2.1.251 resolves it, and users on standard auto-update already received the fix; the 11 November issue is a permission-prompt display problem with no CVE, no score, which Anthropic does not consider a vulnerability and which was still unfixed in 2.1.322 at publication. One is "there is a time gap between the check and the write", the other is "the question asked of the user does not tell the truth". The first is an implementation problem, the second a product-design problem. Mixing them up leads to two wrong conclusions: that the 11 November issue was fixed along with 2.1.251, or that the 9 November flaw is still open. Both are wrong. Keep them separate.

For completeness, the same batch of advisories included a Claude Desktop issue on Windows (CVE-2026-88066): versions before 1.8089.0 invoked git.exe without an absolute path, letting an attacker's malicious git.exe placed in the project directory win the search-path resolution. That one is also fixed, in 1.8089.0. Three advisories in one week show that Anthropic's toolchain was under close scrutiny by researchers in early November — the ones that got fixed did get fixed, and the one that did not is precisely the one the vendor does not think needs fixing.

5. How big is the risk, really: who gets hurt, and how badly

One fair statement first: the flaw cannot conjure an attack out of nothing. It needs two preconditions. First, the workspace must contain a symlink pointing outside — one you placed yourself, one somebody else placed, or one that arrived with a dependency or a repository sync. Second, the agent must go after the location the link points to — either because it wandered there on its own, or because an injected malicious instruction steered it there. If neither precondition holds, this is only a display problem; if both line up, it becomes a workspace escape.

But "needs preconditions" is not the same as "low risk", because neither precondition is rare in the real world. Start with where the link comes from. Git supports symlinks. If a colleague's account in your company is compromised, an attacker can push a commit carrying a malicious symlink into a shared repository, and on the next sync that link lands in your workspace and every teammate's workspace. You trusted the repository and the colleague; the link arrived later. The "opening a workspace means trusting everything in it" model breaks here, because workspace contents change over time while trust is granted once, up front. Then consider why the agent would touch the link. Coding agents process untrusted input all day: READMEs in a repo, descriptions in an issue, code copied from a web page — any of them can hide an injected instruction. A line buried in a comment saying "change this file too while you are at it" can send the agent toward the link. And the approval dialog, the last checkpoint, is exactly the moment when it reports a false address.

How deep the damage goes depends on where the link points. UltraStrike's example is the user's home directory: if a link points at home, the agent can read and write SSH keys in ~/.ssh/. Once keys are read, an attacker can log into your servers, pull your private repositories, and push code in your name. The write direction is more insidious: the agent writes a file to the linked location — say, one line added to your shell startup file — and the next time you open a terminal, that line runs. One approval buys a persistent foothold. Pearson also raises a sharper scenario: depending on the permission mode configured, the plugin may rename files in the workspace without asking. A known link renamed from ./foo/bar to ./foo/bat no longer shows its familiar name in the dialog, so the user loses even the last intuitive defence of "I recognise that name, it points outside, I should be careful".

So the risk is best stated not as "your machine is about to be hacked", but as "your last chance for a human check has been weakened by an inaccurate prompt". AI coding tools hand more and more operations to the agent — reading files, changing configs, running commands, sending requests — and ask the user only at a handful of points. The fewer the questions, the more each one matters. A dialog that asks a thousand times a year can afford one mistake; a dialog that asks only at the critical moment cannot afford any. The smarter the tool gets, the more the one line of text in the approval dialog is worth — not less. A vendor still treating prompts as mere process will eventually pay for it at a more critical point.

6. Three things you can do today: do not wait for the vendor, run the checks yourself

The vendor not fixing it does not mean users can only wait. UltraStrike offers one method that works right now, and this article adds two more — three in total, all doable today. First, verify the real path before every approval. Copy the path shown in the dialog, open a terminal, and run realpath followed by that path. The command prints the path's true location on disk. If the printed location is outside your workspace, or outside the places you allow, deny the request first, then go and look at which symlinks sit on that path. realpath ships with macOS and Linux, nothing to install. It is worth building a habit around: whenever a path in a dialog looks even slightly odd — a folder name you do not recognise, a write you did not expect — run realpath before clicking approve.

Second, audit the symlinks in your workspace on a regular basis. Run find over your workspace path with -type l to list every symlink, then ls -l to see where each one points. The moments worth checking are right after cloning a repository, after syncing a shared project, and after installing dependencies. Pay attention to links pointing outside the workspace, especially ones reaching sensitive places such as the home directory, ~/.ssh, or /etc. If you find a link you do not recognise, ask who put it there and what it is for; if nobody can answer, remove it or move it aside first. A link is not a bad thing by itself, but a link of unknown origin always is.

Third, when cloning a repository you do not trust, turn symlinks off at clone time. Clone with git -c core.symlinks=false and Git will check symlinks out as plain text files instead of creating them, so a malicious link pushed into the repository never enters your workspace, and the dialog's blind spot has nothing to work with. The cost is that legitimate links the project genuinely needs also come out as text files, and the project may not run. So the right use is "inspect first, then use": clone an unfamiliar repository with links off, look it over, confirm it is clean, and then clone a proper copy to actually work with. None of these three steps needs a vendor release or a change of tools. They cost little, and they hand the last human checkpoint back to you.

7. Verdict: an approval dialog is not decoration, and a false address is a security issue

Back to the argument: is this a vulnerability or not? Anthropic's position is that what a prompt displays is not part of the security control and symlinks sit outside the threat model, so it is not a vulnerability. The researchers' position is that approval exists so the user can decide knowingly, knowing requires accurate information, and an approval that hides the real location is not approval — it is theatre. My judgement is that the researchers are right, and the reason is logical, not emotional: the vendor itself fixed the same problem in the CLI, and the fix was precisely "show the real path and warn". If displayed content were truly outside the security control, that fix would have been pointless. The action has already voted; only the statement is still catching up.

What matters more is the trend behind the argument. AI coding tools are moving from "help you write code" to "run the process for you": reading files, changing configs, running commands, sending requests, with fewer and fewer confirmations, asking the user only at a small number of points. The less they ask, the more each question counts. A dialog that asks a thousand times a year can absorb one error; a dialog that asks only at the decisive moment cannot. The smarter the tool, the more valuable the single line in the approval dialog becomes. A vendor that still treats prompts as mere process will pay for it sooner or later at a more critical point.

For vibe coders, the conclusion is simple: do not treat an approval as a button you click to continue. Each time a dialog pops up, spend three seconds on the path — do I recognise it, did I expect this write, should it be there at all. That habit is more reliable than waiting for a vendor fix, because the next thing that reports a false address may not be a symlink at all, but something you have not heard of yet. The real security boundary has always been in your own attention, not in a vendor's threat-model document.

Claude Code CLI vs VS Code plugin on symlink approval prompts: the CLI shows the resolved path and warns, the plugin shows only the workspace path

Views 0Comments 0

Comments (0)

ME
0/1000
Loading comments...

Sources

Browse projectsPublish your project

Related articles

Real photograph of an NVIDIA graphics card circuit board with the GPU die at the centre, surrounded by memory and power modules (illustrative photo)
News
NVIDIA Puts a Location Lock on Overseas Clouds: Fleet Intelligence Becomes Mandatory as Huang Faces Congress

On 30 November, NVIDIA ordered every non-US neocloud provider to use Fleet Intelligence so Commerce Department auditors can verify the identity and location of its chips, and created three new senior compliance roles. Twenty-four hours later, Jensen Huang walked into Congress for closed-door questioning. This article explains what Fleet Intelligence is, why neoclouds specifically, and whether the mandate has real teeth.

Industry TrendsProduct NewsSecurity & Privacy
Real photograph of a person using a laptop showing the Google homepage (illustrative photo)
News
Google Splits Search History from AI Training: a New Opt-Out That Only Covers the Future

On 30 November 2026, Google added a setting that lets users keep Search Services History on while opting out of having their future activity in Search services used to train generative AI models. It reverses a mid-2026 policy under which the only way out of AI training was to switch off search history entirely — a design privacy advocates called a hostage bargain, and which drew an investigation by the law firm Migliaccio & Rathod on 26 August.

GeminiProduct NewsSecurity & Privacy
Real photograph of a wooden desk with a white alarm clock beside a calendar page (illustrative photo)
Guide
crontab From Zero: Jobs That Just Run on Time, Five Fields Explained Once

cron is the scheduling daemon that has run on Linux for decades: write a crontab file saying 'run this command at this time', and it handles the rest. This guide runs everything for real on Debian cron 3.0pl1-162 — installing a job, waiting one minute for the trigger, verifying the log, removing the job — plus special strings, five classic mistakes, and a real 3 a.m. log-archiving job.

Developer WorkflowAutomationTool Tips