Skip to content
XSS Advisory Intermediate CVE-2026-119975

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

Visual Studio Code did not properly neutralise input when generating a web page, allowing cross-site scripting. An attacker could publish an extension with crafted display information, and if a user clicked a malicious link in the publisher trust dialog, code could execute in the user's context before the extension was installed or the publisher trusted.

Myungyong Lee Follow with anvt, dogyun and 5 others

Originally disclosed on Microsoft

High 8.8 View original

Description

Improper neutralization of input during web page generation ('cross-site scripting') 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 publish an extension with specially crafted display information. If a user clicks the malicious link in the publisher trust dialog, successful exploitation could allow the attacker to execute code in the context of the user before the extension is installed or the publisher is trusted.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Myungyong Lee. 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 improper neutralisation of user-supplied display information in the publisher trust dialog, leading to cross-site scripting.

Impact

Successful exploitation could allow the attacker to execute code in the context of the user before the extension is installed or the publisher is trusted.

What the attacker needed

Attacker publishes a malicious extension; victim clicks a link in the trust dialog

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 cross-site scripting flaw means the editor failed to clean up text it displayed, so a malicious extension could show a link that, when clicked, runs harmful code on the user's computer. The attacker needs the user to click that link before the extension is installed or its publisher is trusted.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by Myungyong Lee

View all

3 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.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.