Skip to content
XSS Advisory Intermediate CVE-2026-41610

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

Visual Studio Code fails to neutralise input properly when generating a web page, which is a cross-site scripting weakness. An attacker could use this to bypass a security feature locally, and the affected content is rendered when a user opens or views a maliciously crafted notebook.

Tarek Nakkouch Follow

Originally disclosed on Microsoft

High 6.3 View original

Description

Improper neutralization of input during web page generation ('cross-site scripting') in Visual Studio Code allows an unauthorized attacker to bypass a security feature locally.

FAQ

According to the CVSS metric, a successful exploitation could lead to a scope change (S:C). What does this mean for this vulnerability? An exploited vulnerability can affect resources beyond the security scope managed by the security authority of the vulnerable component. In this case, the vulnerable component and the impacted component are different and managed by different security authorities.

FAQ

According to the CVSS metric, user interaction is required (UI:R). What interaction would the user have to do? Exploitation would require a user to open or view a maliciously crafted notebook so that the affected content is rendered.

Visual Studio Code

Visual Studio Code

Microsoft

Microsoft

Customer Action Required

Yes

The original report as published on the Microsoft Security Response Center, by Tarek Nakkouch. 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 the notebook rendering path does not properly neutralise or sanitise content before it is placed into a generated web page.

Impact

An attacker could bypass a security feature locally, and the CVSS scope change means the affected resources may sit outside the vulnerable component's own security boundary.

What the attacker needed

Victim opens a malicious notebook

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.

Cross-site scripting is when a program puts text from an untrusted source onto a page without cleaning it, so that text can run as code. Here the program is a code editor, and the bad text is hidden inside a notebook file. If you open that file, the hidden content is displayed and can get around a protection the editor has.

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 Tarek Nakkouch

View all

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