Déjà Vu in the Void: An Agentic IDE Compromised by Known Tricks
Void Editor, an agentic IDE, was vulnerable to hidden prompt injection in source files and insecure markdown image rendering, allowing an attacker to exfiltrate local secrets such as API keys. A second flaw let a prompt-injected agent modify the mcp.json configuration file, which the editor then executed, achieving remote code execution.
medium.com
Published on medium.com
The world of AI development is moving at a breakneck pace, with new “agentic” tools promising to revolutionize how we code. One such tool is Void Editor, an open-source IDE designed for “vibe coding.” With over 27,000 stars and 2,100 forks on GitHub, this popular fork of VS Code has a substantial impact on the…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the agent treated file contents as trusted instructions and the editor auto-fetched markdown images and auto-executed configuration commands without sanitisation or user approval.
Impact
An attacker could steal local secrets such as API keys and, through the configuration flaw, execute arbitrary commands on the host, enabling persistence and full control of the user's machine.
What the attacker needed
Victim uses Void Editor; victim opens a malicious file; victim asks the agent to analyse it; no user interaction for image fetch
The fix
The editor should restrict media rendering to trusted domains or require user confirmation, and should not let the agent write to or execute its own configuration without explicit approval.
How it was found
- The attacker hides malicious instructions inside comments in a source code file.
- The victim asks the agent to explain the file.
- The agent follows the hidden instructions and reads a sensitive local file such as .env.
- The agent builds a markdown image URL with the stolen data as a query parameter.
- The editor automatically fetches the image, sending the secrets to the attacker's server.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
An AI coding assistant can be tricked by instructions hidden inside a file it is asked to read. If the assistant then builds a link to an image on an attacker's server, the editor fetches that image automatically and leaks secrets in the web address. Separately, if the assistant can edit a settings file that the editor runs without asking, an attacker can make the editor run their own commands.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.