Skip to content
MicrosoftGHSA-rg3f-8xq5-hwh6

Apply patch sensitive file workaround

High8.8CVE-2026-41109 · Published May 12, 2026

## VS Code - Remote Code Execution Vulnerability A remote code execution vulnerability exists in VS Code 1.119.0 and earlier versions where a crafted prompt-injection on certain GPT family models can cause the agent to edit sensitive files without presenting confirmation to the user. ### Patches The fix is available starting with **VS Code 1.119.1**. The fix (https://github.com/microsoft/vscode/commit/be09b4c7a118ae389662646f4fb9dcaa84757521) mitigates this attack by validating paths are unchanged after patch healing. ### Workarounds Avoid including untrusted data in GPT prompts. ### References * The patch for this can be found at https://github.com/microsoft/vscode/commit/be09b4c7a118ae389662646f4fb9dcaa84757521 * An issue for this can be found at https://github.com/microsoft/vscode/issues/316071 * MSRC details for this can be found at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-41109

GitHub advisory

Affected versions

PackageAffectedFixed in
vscode
Product
all versionsNo fix yet
Details and references
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Severity from
GitHub (reviewed advisory)

More Microsoft advisories

All Microsoft

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.