Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

GitHub Copilot prompt injection to local code execution via auto-approve mode

IdentifiersCVE-2025-53773CWE-77· Improper Neutralization of Special…

CVE-2025-53773 is a command injection / prompt-injection-driven local code execution vulnerability affecting GitHub Copilot and Visual Studio. The provided content states that improper neutralization of special elements used in a command allows an unauthorized attacker to execute code locally. Reported attack chains show that attacker-controlled content such as a README.md, pull request description, or similar repository context can contain hidden instructions that are ingested by the coding assistant. Those instructions can cause the agent to modify IDE configuration files, specifically .vscode/settings.json, to enable {"chat.tools.autoApprove": true} (described as 'YOLO mode'), thereby disabling confirmation prompts for tool execution. Once confirmations are suppressed, the assistant can be induced to execute arbitrary shell commands on the developer workstation across Windows, macOS, and Linux, resulting in full local compromise. Additional mention contexts indicate related variants involving edits to .idea/workspace.xml or setting executable-path style configuration values such as php.validate.executablePath or PATH_TO_GIT to attacker-controlled executables.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows arbitrary local code execution in the context of the user running the IDE/assistant. The content explicitly describes unrestricted shell execution and full system compromise. Depending on the privileges and accessible secrets of the affected developer environment, impact can include theft of source code and credentials, modification of repositories and workspace files, persistence through configuration changes, lateral movement via developer tokens or SSH keys, and downstream supply-chain compromise if malicious changes are committed or pushed.

Mitigation

If you can’t patch tonight, do this now.

Until patching is fully deployed, treat repository content, pull request descriptions, issues, README files, and other assistant-ingested project artifacts as untrusted input. Disable or strictly restrict auto-approve / confirmation-bypass modes for agent tool use. Prevent AI assistants from modifying their own configuration or workspace trust settings where possible. Require explicit human approval for shell execution and sensitive file writes, especially to IDE settings files. Run coding assistants with least privilege, isolate them in sandboxed environments where feasible, and monitor for unexpected edits to .vscode/settings.json, .idea/workspace.xml, executable-path settings, and anomalous child-process creation from the IDE.

Remediation

Patch, then assume compromise.

Apply Microsoft's August 2025 Patch Tuesday updates that address CVE-2025-53773 in GitHub Copilot and Visual Studio. Update affected Copilot/Visual Studio components to the vendor-fixed versions and ensure all related AI assistant extensions are current. Review and revert unauthorized changes to IDE configuration files such as .vscode/settings.json and .idea/workspace.xml, especially settings enabling automatic approval of tool execution or altering executable paths. Audit developer workstations and repositories for signs of malicious prompt content, unexpected shell execution, or unauthorized commits performed through the assistant.
PUBLIC EXPLOITS

Exploits

No valid public exploits. Mallory filtered out 1 candidate as fakes, detection scripts, or README-only repos.

VALID 0 / 1 TOTALView more in app

All candidate exploits were filtered out by Mallory's validation.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationVisual Studio 2022application

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware1

Malware families riding this exploit, with evidence and IOCs.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity51

Community discussion across Reddit, Mastodon, and other social sources.