Skip to content
MediumNewsLLM-specific

GhostApproval Symlink Flaws Could Let Malicious Repos Run Code in AI Coding Agents

Published
Record updated
View JSON

Summary

Wiz researchers found that six AI coding assistants (Amazon Q Developer, Anthropic's Claude Code, Augment, Cursor, Google Antigravity and Windsurf) can be tricked by a malicious repository containing a symlink into writing to sensitive files such as ~/.ssh/authorized_keys or ~/.zshrc, which can lead to control of the developer's machine. Wiz named the pattern GhostApproval and published it on July 8, noting that the approval prompt names the harmless file rather than the real write target. Three vendors have fixed the issue, two have not, and Anthropic disputes that it is a bug.

Mitigation

Amazon Q Developer: Fixed in Language Server 1.69.0 (CVE-2026-12958); update, which installs automatically for most users, and reloading the IDE pulls it in. Cursor: Fixed in v3.0 (CVE-2026-50549); update from the extension manager. Google Antigravity: Fixed (CVE pending); update to the current version. Augment and Windsurf: Acknowledged, no fix yet; do not point them at repositories you do not trust. Anthropic Claude Code: Disputed, current versions warn about symlinks; update and read the symlink warning before accepting.