Skip to content
Access control Advisory Intermediate CVE-2026-119982

Visual Studio Code Security Feature Bypass Vulnerability (CVE-2026-119982)

Visual Studio Code's inline chat feature had an incorrect authorization check that let an attacker bypass the restriction limiting edits to the active document. By supplying specially crafted content processed by inline chat, an attacker could modify other workspace files without the expected authorization or confirmation.

Mohit_Negi Follow

Originally disclosed on Microsoft

High 6.5 View original

Description

Incorrect authorization in Visual Studio Code allows an unauthorized attacker to bypass a security feature over a network.

FAQ

What security feature could be bypassed by successfully exploiting this vulnerability? An attacker could supply specially crafted content that a user processes with inline chat in Visual Studio Code. Successful exploitation could allow modifications to other workspace files without the expected authorization or confirmation, bypassing the restriction that limits edits to the active document.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Mohit_Negi with Bugcrowd. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 in the inline chat feature that failed to enforce the restriction limiting edits to the active document.

What the attacker needed

User processes crafted content with inline chat

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 code editor, and its inline chat feature lets an AI assistant suggest changes to the file you are working on. Normally it is only allowed to edit that one open file. This bug meant that specially crafted content could trick it into changing other files in your project without asking you first.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.