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

Visual Studio Code Remote Code Execution Vulnerability (CVE-2026-120780)

An improper access control flaw in Visual Studio Code lets an unauthenticated attacker run code over the network. By convincing a user with an active authenticated web-server session to open a crafted link, the attacker could cause a vulnerable older server version to run and execute code with the server account's permissions.

Sechack Follow

Originally disclosed on Microsoft

High 8.3 View original

Description

Improper access control in Visual Studio Code allows an unauthorized attacker to execute code over a network.

FAQ

How could an attacker exploit this vulnerability? An unauthenticated attacker could convince a user with an active, previously authenticated Visual Studio Code web-server session to open a specially crafted link. If a vulnerable older server version remains available, successful exploitation could cause that version to run and allow the attacker to execute code with the server account's permissions.

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 Sechack. 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 access-control check that fails to stop an unauthenticated request from triggering a vulnerable older server version to run.

Impact

An attacker could execute code with the server account's permissions, but only if a vulnerable older server version remains available and the user opens the crafted link.

What the attacker needed

Victim has an active authenticated session; victim opens a crafted link; a vulnerable older server version is available; specific protocol or configuration settings

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 can run as a web server that people reach through a browser. This flaw means someone who is not logged in can trick a logged-in user into clicking a link, and that can make an old, vulnerable version of the server start up and run the attacker's code. The attacker then acts with the same powers as the account running that server.

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 Sechack

View all

1 more disclosed report, 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.