Visual Studio Code Security Feature Bypass Vulnerability (CVE-2026-102232)
Visual Studio Code had an incorrect authorization check that let an attacker bypass a security feature locally. By supplying crafted content to an AI coding agent, an attacker could modify a configured lifecycle-hook file without the expected confirmation, potentially leading to commands running as the user.
Originally disclosed on Microsoft
Description
Incorrect authorization in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.
FAQ
What security feature could be bypassed by successfully exploiting this vulnerability? An attacker could supply specially crafted content that an AI coding agent processes. Successful exploitation could allow the attacker to modify a configured lifecycle-hook file without the expected confirmation, which could result in commands executing in the context of the user. User interaction is required to run the agent against attacker-controlled content.
FAQ
According to the CVSS metric, the attack complexity is high (AC:H). What does this mean for this vulnerability? Exploitation is not trivial for this vulnerability as it requires multiple steps: prompt injection, Copilot Agent interaction, and triggering a build.
Visual Studio Code
Visual Studio Code
Microsoft
Microsoft
Customer Action Required
Yes
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely an incorrect authorization check that failed to require user confirmation before an AI agent modified a lifecycle-hook file.
Impact
An attacker could modify a lifecycle-hook file without the expected confirmation, which could result in commands executing in the context of the user; exploitation is not trivial and requires user interaction to run the agent against attacker-controlled content.
What the attacker needed
User runs the AI agent on attacker content; crafted content supplied to the agent
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Visual Studio Code is a popular code editor, and it has an AI helper called Copilot that can read content and act on it. Normally the editor asks you to confirm before certain files that run commands are changed, but a flaw meant that confirmation could be skipped. An attacker who gets the AI helper to read their content could then quietly change such a file, and later those commands might run on your machine.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.