Definition

GhostApproval is a systematic vulnerability pattern in AI coding assistants where malicious repositories use symbolic links (symlinks, CWE-61) to trick agents into writing to sensitive files outside the workspace sandbox, while confirmation dialogs display harmless paths (CWE-451 UI misrepresentation).

Affected Tools (July 2026)

VendorStatusCVE
Amazon Q DeveloperFixedCVE-2026-12958
CursorFixedCVE-2026-50549
Google AntigravityFixedPending CVE
Anthropic Claude CodeMitigated (v2.1.32+)N/A
AugmentUnfixed
WindsurfUnfixed

Attack Vector

Malicious repo README instructs agent to edit a symlinked file (e.g., ./config.json~/.ssh/authorized_keys). Agent’s internal reasoning may recognize the dangerous target, but user sees only the symlink name in approval dialog.

Distinct from hallusquatting (hallucination-based package names).

Mitigations

  • Resolve symlinks before displaying confirmation prompts
  • Warn when resolved path exits workspace
  • Never write to disk before explicit user authorization
  • Inspect repo symlinks before cloning untrusted code

Sources