LIVE LOG · recorded complete source-check dates between October 14 and November 30, 2026; excludes entries with incomplete or unverified source checks · site updated Nov 12, 2026, 12:09 AM ET

← All incidents

VS Code Agent Host runs agent-originated local commands without expected terminal approval

Vulnerability · VS Code · MEDIUM

Incident date
DisclosedNov 10, 2026 (GitHub advisory)
Added hereNov 16, 9:57 AM ET
Last verifiedNov 16, 2026

Summary

Per the vendor advisory, the VS Code Agent Host in 1.145.2 and earlier could treat local-command syntax from an agent message as if the user had entered it. The command could then run without the expected terminal approval. The advisory says an attacker would need to influence an agent's child prompt, typically through untrusted repository instructions, and the user would need to grant the related session tool operation. The fix is available starting with VS Code 1.145.3.

Severity

MEDIUM CVSS score 6.8 rates Medium, matching the GitHub advisory.

Kit, our email provider, gets your address only to send the newsletter. Every email has an unsubscribe link. Privacy policy.

Timeline

  1. Nov 10, 2026
    Advisory GHSA-w9fm-7vcm-cvq4 (CVE-2026-120782) published by the vendor, per the vendor advisory

How it happened

Per the vendor advisory, local-command syntax in an agent message could be handled as user-entered input and execute without the expected terminal approval. The advisory says the attacker would need to influence an agent's child prompt, typically through untrusted repository instructions or other prompt content. It also says the user would need to grant the related session tool operation.

How to check your app

Sources

Corrections and updates

None. Re-checked against every source on Nov 16, 2026.

Cite this entry
Title
VS Code Agent Host runs agent-originated local commands without expected terminal approval
Added
Nov 16, 2026
URL
https://vibeincidents.com/incidents/vs-code-cve-2026-120782/
Suggested citation
VibeIncidents. "VS Code Agent Host runs agent-originated local commands without expected terminal approval." Nov 16, 2026. https://vibeincidents.com/incidents/vs-code-cve-2026-120782/