AI Assistants Turn IDEs into Zero‑Click Remote Code Execution
AI code assistant vulnerabilities are security flaws in AI-powered development tools that let hidden or malicious instructions trigger arbitrary command execution with little or no user interaction, often by abusing project configuration files, prompt injection techniques, or sandbox escape bugs inside modern integrated development environments. The uncomfortable takeaway is that our IDEs have become remote shells disguised as helpers. Two recent cases—Cursor’s DuneSlide bugs and an Amazon Q vulnerability—show how a single poisoned prompt or booby‑trapped Git repository can execute commands, steal cloud credentials, and bypass the very guardrails vendors point to as their safety story. This is not a quirky edge case; it is a structural failure in how agents are wired to “help” developers by running tools on their behalf. Treating these assistants as safe by default is no longer defensible.

Cursor’s DuneSlide: When a Harmless Prompt Owns Your Machine
Cursor’s DuneSlide flaws (CVE-2026-50548 and CVE-2026-50549) show how prompt injection attacks can turn a guarded AI editor into a remote code execution IDE. Two bugs in Cursor 2.x let a single ordinary-looking prompt escape the sandbox and run any command on the developer’s computer, rated 9.8 (9.3 under CVSS 4.0). The trick is brutally simple: get the AI agent to write one file it should never touch, then use that to switch off the sandbox. One bug abuses a working_directory setting so the agent overwrites the sandbox helper or a startup file; the other exploits a flawed symlink safety check to do the same. Once the sandbox falls, the next command runs as the user, with access to the machine and any connected cloud or SaaS workspaces. Both issues are patched in Cursor 3.0; every prior version is affected, and the vendor stresses that more than half the Fortune 500 rely on this tool, so updates are non‑negotiable.
Amazon Q: Booby‑Trapped Git Repos as Cloud Credential Theft Kits
The Amazon Q vulnerability, CVE-2026-12957, proves you no longer need phishing to steal a developer’s cloud keys—opening the wrong Git repo is enough. The AI coding assistant extension for Visual Studio Code would automatically load .amazonq/mcp.json from a project and execute its commands when the workspace opened and Amazon Q was activated, with no prompt, consent, or trust check. MCP processes inherited the developer’s environment, including AWS credentials, API keys, authentication tokens, and SSH agent sockets. In other words, a single malicious config file could execute arbitrary commands with full access to the developer’s credentials, with no user interaction beyond opening the folder. Rated 8.5 under CVSS 4.0, the bug has been fixed in language server version 1.65.0, which should auto‑update unless administrators have blocked it. The chilling part is that this was considered acceptable until researchers proved otherwise; the model assumed users had manually configured any MCP servers they trusted.
The Structural Problem: Blind Trust in Hidden Configs and Agent Autonomy
These are not isolated glitches; they are symptoms of a design pattern that treats hidden files and AI agents as inherently trustworthy. Many AI coding assistants now adopt MCP or similar mechanisms to connect models to local tools and services, which lets them execute commands on developers’ machines. At the same time, agents eagerly read project configuration files, Git hooks, and workspace metadata—and then act on them automatically. Researchers note that similar workspace configuration flaws have surfaced in other AI coding tools, suggesting attackers will increasingly hide in files developers rarely inspect. Cursor’s history of prompt-based RCE issues, from CurXecute and MCPoison to Git-hook abuse, shows how each new safety guardrail becomes a fresh target. DuneSlide is explicitly about escaping Cursor’s own sandbox. When one poisoned prompt or repo can disable core protections, the problem is no longer a bug hunt; it is a broken trust model.
What Developers and Security Teams Must Do Now
The immediate actions are straightforward, and delaying them is reckless. First, update Cursor to version 3.0 or later, since every version before 3.0 is affected by DuneSlide and the fixes have already shipped. Second, ensure Amazon Q’s language server is at version 1.65.0 or later, and confirm automatic updates have not been blocked; that update remediates CVE-2026-12957. Third, treat AI code assistants as high‑privilege agents: lock them into least‑privilege environments, limit what they can execute, and audit MCP or similar configurations rather than assuming they are safe. Finally, bake AI-specific supply chain checks into your SDLC: review hidden workspace files, Git hooks, and MCP configs in repositories before opening them in an AI-enabled IDE. The future of development will include agents, but unless we assume every input is hostile, AI code assistant vulnerabilities will keep turning IDEs into the weakest link in the stack.






