MSRC 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.