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 (be09b4c) mitigates this attack by validating paths are unchanged after patch healing.
Workarounds
Avoid including untrusted data in GPT prompts.
References
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 (be09b4c) mitigates this attack by validating paths are unchanged after patch healing.
Workarounds
Avoid including untrusted data in GPT prompts.
References