Critical One-Click RCE Flaw Exposes VS Code and Cursor Users to Remote Code Execution
Developers face serious security risks as a one-click remote code execution flaw in commit messages compromises endpoint security across top editors.

Stock photo for illustration only, not from the actual event
- Discovered a 1-click remote code execution flaw via links in commit messages
- Impacts popular editors including VS Code, Cursor, and Google Antigravity
- Attacks exploit editor URL handlers and custom schemes like vscode:// or cursor://
- Mitigations involve checking registered schemes and running editors in sandboxes
The three code editors that developers rely on most heavily right now — Cursor, Microsoft Visual Studio Code, and Google Antigravity — have encountered a security disclosure worth taking seriously: a one-click remote code execution vulnerability triggered simply by a link inside a commit message. Click that link, and your endpoint belongs to whoever embedded the command.
This bug reads like a theoretical issue until it becomes reality. Most development teams using these tools rush through AI-assisted edits, trusting the editor to act in their favor, which is not always the case.
According to the IT Security News write-up of the August 5, 2026 disclosure, the flaw allows attackers to conceal malicious commands inside links placed within commit messages. Victims click the link as part of their routine workflow, and arbitrary code executes directly on the developer machine. The "1-click" designation is precise—one click results in full endpoint compromise.
This event highlights a shift in the trust boundary. While teams typically guard against network threats, this vulnerability transforms the editor itself into an execution environment where links act as instructions rather than mere data. Development teams must fundamentally rethink how they assess editor trust.

Stock photo for illustration only, not from the actual event
The attack vector begins when an attacker crafts a commit message containing a link utilizing a scheme recognized by the editor as executable, such as vscode://, cursor://, antigravity://, or javascript:. Previewing, hovering, or clicking triggers the editor URL handler, which spawns a process and routes arbitrary commands straight to the developer shell.
The solution is not merely telling users to stop clicking links. The proper fix requires editors to treat arbitrary schemes from unknown sources as data rather than instructions. Until this becomes the universal default, teams must enforce security boundaries independently.
Environment hardening does not require waiting for official patch numbers. Tasks can be performed immediately. On macOS, developers can check registered URL schemes using system utilities, while Linux users can query default handlers via xdg-mime.
Concrete policies to implement within development teams immediately include:
- Treating commit messages with least-trust principles rather than exempting them
- Running editors inside a sandbox environment, such as using bubblewrap on Linux with network access denied by default
- Enforcing per-app sandbox profiles and outbound network restrictions for macOS users
Source: Dev.to
Found something wrong in this article? Report an issue with this article
Comments
Leave a Comment