Skip to content
Access control Advisory Advanced CVE-2026-119981

Visual Studio Code Elevation of Privilege Vulnerability (CVE-2026-119981)

Visual Studio Code lacks authentication for a critical function, letting an authorised attacker raise their privileges locally. A successful attacker could run code in the context of another Visual Studio Code user on the affected system.

Nguyen Van Minh Duc Follow

Originally disclosed on Microsoft

High 7.0 View original

Description

Missing authentication for critical function in Visual Studio Code allows an authorized attacker to elevate privileges locally.

FAQ

What privileges could be gained by an attacker who successfully exploited the vulnerability? An attacker who successfully exploited this vulnerability could execute code in the context of another Visual Studio Code user on the vulnerable system.

FAQ

According to the CVSS metric, the attack complexity is high (AC:H). What does this mean for this vulnerability? An attacker would need specific conditions to be in place (i.e. particular protocol settings, or configurations, etc.) before an attack could succeed, which reduces the likelihood of widespread or opportunistic exploitation.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Nguyen Van Minh Duc with Saigon Newport Corporation. 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 a critical function in the editor was exposed without an authentication check, so a local user could invoke it as another user.

Impact

An attacker could execute code in the context of another Visual Studio Code user, though the high attack complexity means specific conditions must be in place, reducing the chance of widespread exploitation.

What the attacker needed

Local access to the machine; specific settings or configuration in place

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.

This is a short advisory about a flaw in Visual Studio Code, a popular code editor. A critical feature did not check who was allowed to use it, so someone already able to run things on the machine could act as another user of the editor. That means they could run their own code with that other person's permissions.

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 by Nguyen Van Minh Duc

View all

4 more disclosed reports, best first.

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.