Skip to content
RCE Advisory Intermediate CVE-2026-59113

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

Visual Studio Code lacks an authorization check when handling a specially crafted web page, allowing an attacker to make the application launch operating-system protocol handlers without prompting the user. This could result in code execution on the victim's system, though user interaction is required.

Soroush Dalili Follow

Originally disclosed on Microsoft

High 8.8 View original

Description

Missing authorization in Visual Studio Code allows an unauthorized attacker to execute code over a network.

FAQ

How could an attacker exploit this vulnerability? An attacker could host a specially crafted web page and use social engineering to convince a user to have the application retrieve it. The malicious page could then cause the application to launch operating-system protocol handlers without prompting the user, which could result in code execution on the user's system. User interaction is required.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Soroush Dalili with Bentley Systems. 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

Impact

An attacker could achieve code execution on the user's system, but user interaction is required.

What the attacker needed

Victim uses Visual Studio Code; victim visits attacker page; user interaction required

How it was found

  1. Host a specially crafted web page.
  2. Use social engineering to convince a user to have the application retrieve the page.
  3. The malicious page causes the application to launch operating-system protocol handlers without prompting the user.

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. A missing check meant that a malicious website could trick the editor into opening other programs on the computer without asking the user first. If those programs are dangerous, this could let an attacker run their own code, but the user still has to be convinced to visit the page.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.