GhostApproval Symlink Flaws Could Let Malicious Repos Run Code in AI Coding Agents
- Published
- Record updated
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.
Topics
Related items
- HighCVE-2026-136267 - Improper neutralization of special elements used in an OS command in Kiro WebSame vendor · AWS Security Bulletins
- InfoAmazon is reportedly in talks to end Muse AI shopping blockSame vendor · The Verge (AI)
- InfoPrompting AI to be ‘thorough’ can drive sandbox escapes, Anthropic saysSame vendor · CSO Online
- InfoDespite doom and gloom headlines, AI attacks are thin on the groundSame vendor · CSO Online
- InfoDrupal Flaw Found by Anthropic Scanner Exploited in AttacksSame vendor · SecurityWeek