gbhackers.comยท16 november 2026

Claude Code Extension Could Let AI Agents Access Files Outside Trusted Workspaces Through Symlinks

Image for the article: Claude Code Extension Could Let AI Agents Access Files Outside Trusted Workspaces Through Symlinks
Image via gbhackers.com

Anthropic's Claude Code extension for Visual Studio Code displays misleading file paths in permission prompts, potentially allowing users to approve file access outside their trusted workspace. The issue, reported as unpatched in version 2.1.322, involves symlinks that point outside the workspace but appear as harmless in-workspace paths. Adversa confirmed the technique against multiple AI agent CLIs, and Anthropic later hardened the CLI but not the extension. Until a fix is released, manual verification of symlinks is recommended to prevent unauthorized file access.