Incident report

IDE Coding Assistant Auto-Approve Settings Tampering Leading to Host RCE

CVE-2025-53773 (published August 12, 2025, disclosed by Johann Rehberger / Embrace The Red) documented a critical remote code execution chain in GitHub Copilot and Visual Studio Code agent modes. Indirect prompt injections hidden inside untrusted source code comments or repository issue text instructed the coding assistant to edit `.vscode/settings.json` and enable `chat.tools.autoApprove: true` (YOLO mode). Once auto-approval was silently flipped on, the agent immediately executed arbitrary shell commands on the developer's machine without user confirmation prompts. Microsoft patched the vulnerability by protecting IDE security settings from agent-initiated file edits.

Incident record

Reported
Severity
Critical
Vector
Indirect Prompt Injection
Affected system type
IDE-Integrated Autonomous Coding Assistants
Reference
CVE-2025-53773
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-53773

Inspect in Interactive Incidents Hub

Defensive lesson

Make IDE security configuration files (.vscode/settings.json, MCP configs) immutable to AI coding agents and require out-of-band human edits for approval policies.

Referenced techniques