VS Code vulnerability: prompt injection causes Copilot Agent to modify configuration and execute commands
Start here
Microsoft MSRC published a VS Code vulnerability advisory CVE-2026-102232 on October 13, classifying it as a security feature bypass with a CVSS 3.1 score of 7.0, severity Important, and has provided an official fix. The advisory states that an attacker can provide specially crafted content for an AI coding agent to process, and upon success, modify configured lifecycle-hook files without the expected confirmation, potentially allowing command execution as the user. Successful exploitation requires multiple conditions to be met simultaneously, including prompt injection, Copilot Agent interaction, and triggering a build.
Generated by AI from reports · Updated 2026-10-14
Progress timeline
- MicrosoftMSRC discloses VS Code vulnerability CVE-2026-102232: prompt injection can allow Copilot Agent to modify lifecycle-hook files without confirmation
Microsoft MSRC published a VS Code vulnerability advisory CVE-2026-102232 on October 13, classifying it as a security feature bypass, with a CVSS 3.1 score of 7.0, severity Important, and has provided an official fix. The advisory states that an attacker can provide specially crafted content for an AI coding agent to process, and upon success, modify configured lifecycle-hook files without the expected confirmation, potentially allowing command execution as the user. Successful exploitation requires multiple steps including prompt injection, Copilot Agent interaction, and triggering a build, with high attack complexity and user interaction required. The advisory states that the vulnerability was not publicly disclosed, no exploitation has been found, and thanks the reporter Max van Amersfort.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@windowsforum · Windows Forum🤖 VS Code has a new security bypass (CVE-2026-102232) right where autonomous AI coding assistants touch untrusted input…(opens the original post in a new tab)