Skip to main content

Visual Studio Code EUVDEUVD-2026-29693

| CVE-2026-41610 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-12 microsoft
5.0
CVSS 3.1 · NVD
Temporal: 5.5
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted file to developer machine
  2. Delivery
    Victim opens file in VS Code
  3. Exploit
    Victim activates webview preview feature
  4. Execution
    XSS payload renders in webview
  5. Persist
    Script escapes webview sandbox boundary
  6. Impact
    Sensitive session data exfiltrated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the victim open a maliciously crafted file in Visual Studio Code using a feature that triggers webview rendering - such as Markdown preview (Ctrl+Shift+V), HTML preview via an extension, or Jupyter notebook rendering. The malicious file must first be present on the local filesystem (AV:L), meaning the attacker must deliver it via a repository clone, phishing, shared drive, or similar social engineering vector. The victim must actively interact with the file to trigger rendering (UI:R); simply opening the file in the text editor without activating preview is insufficient. No privileges on the victim system are required to craft or deliver the malicious file (PR:N). Exploitation is limited by the requirement for local file delivery, active user interaction with a specific VS Code feature, and the non-automatable nature confirmed by SSVC; mass or remote unauthenticated exploitation is not feasible under this attack model.

Impact

The CVSS 6.3 Medium score with vector AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N presents a nuanced risk profile. The S:C and C:H combination is the most concerning signal - sandbox escape with high confidentiality impact suggests meaningful data exfiltration potential if triggered. However, multiple independent signals converge on low urgency: EPSS is only 0.04% (13th percentile), well below thresholds that indicate active exploitation tooling; SSVC categorizes exploitation as none, technical impact as partial, and automatable as no, meaning mass targeting is not feasible; and the vulnerability is absent from CISA KEV. The local attack vector and required user interaction (UI:R) are genuine friction points - an attacker must first deliver a malicious file to the victim machine and then induce the victim to open and preview it in VS Code. The realistic threat model is targeted attack against developers in sensitive environments (e.g., those with privileged credentials or source code for critical systems stored in their VS Code workspace) rather than opportunistic mass exploitation.

Exploit ScenarioDerived

An attacker places a crafted Markdown, HTML, or notebook file containing an XSS payload into a shared repository or delivers it via phishing to a developer. When the developer opens the file in VS Code and the preview panel renders it, the injected script executes within the VS Code webview context, escaping the sandbox boundary and exfiltrating data accessible to the VS Code session - such as environment variables containing API keys, OAuth tokens loaded by extensions, or the contents of adjacent workspace files. No public exploit code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Cross-site scripting in Microsoft Visual Studio Code (all versions prior to 1.119.1) allows a local attacker to inject malicious scripts into VS Code's webview rendering engine, bypassing security feature protections with high confidentiality impact across component boundaries. The CVSS Scope:Changed metric (S:C) combined with C:H indicates the injected payload can escape the webview sandbox and exfiltrate data accessible to the broader VS Code/Electron process, such as environment variables, authentication tokens, or workspace file contents. No public exploit code has been identified and EPSS sits at 0.04% (13th percentile), indicating low current exploitation pressure despite the meaningful confidentiality impact.

RemediationAI

Upgrade Visual Studio Code to version 1.119.1 or later, which contains the vendor-released patch as documented by Microsoft at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-41610. The fix version 1.119.1 is confirmed by EUVD-2026-29693. As a compensating control prior to patching, avoid opening files from untrusted sources (repositories, email attachments, shared drives) in VS Code features that render webview content - specifically Markdown preview, HTML preview, Jupyter notebooks, and extension-provided browser panels; disabling these preview features via VS Code settings or disabling untrusted extensions reduces the webview attack surface but may impair editor functionality. Organizations should also consider enabling VS Code's Workspace Trust feature, which prompts before executing content from unknown workspaces and reduces the risk of automatic webview rendering of malicious files.

Affected VersionsENISA

Visual Studio Code 1.0.0 <1.119.1

Affected Packages

microsoft visual_studio_code_1_119_1 fix: Visual Studio Code 1.119.1
euvd visual_studio_code fix: 1.119.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in microsoft, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Visual Studio Code is an Electron-based IDE that renders HTML/webview content in isolated webview panels - used for Markdown previews, notebook rendering, extension UIs, and built-in browser panels. CWE-79 (Improper Neutralization of Input During Web Page Generation) identifies the root cause as insufficient sanitization of user-controlled or file-supplied input before rendering it in one of these web contexts. The CVSS Scope:Changed metric is significant here: it confirms the XSS payload is not contained within the webview sandbox but can reach the Electron renderer process or adjacent VS Code components with broader data access. CPE cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:* covers all platform variants (Windows, macOS, Linux) across the full affected range. The local attack vector (AV:L) is consistent with file-based delivery rather than network-based injection.

Know when Visual Studio Code gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.0 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
ENISA EUVD HIGH
CIRCL (temporal) 5.5 MEDIUM
vuln.today AI 6.3 MEDIUM

Local file delivery with no attacker privileges needed; user must actively trigger webview rendering; scope change reflects webview sandbox escape with confidentiality-only impact on the broader VS Code process.

3.1 AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Oct 26, 2026 - 18:23 NVD
6.3 (MEDIUM) 5.0 (MEDIUM)
CVE Published
May 12, 2026 - 16:58 nvd
MEDIUM 6.3

DescriptionNVD

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Prevalence
High
dominant cross-platform IDE with massive global enterprise and developer adoption
Threat Intel
1
1 sources
Vendor Action
See Below
Required. The vulnerability documented by this CVE requires customer action to resolve.
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation Less Likely
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +25
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: +5

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2022-41034 HIGH POC
7.8 Oct 11

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2022-30129 HIGH POC
8.8 May 10

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 8.8), this vulnerability is remotely e

CVE-2026-81376 CRITICAL
9.6 Sep 08

Security-feature bypass in Microsoft Visual Studio Code before 1.136.2 lets a remote, unauthenticated attacker defeat a

CVE-2026-102238 CRITICAL
9.6 Oct 13

Remote code execution in Visual Studio Code (versions 1.0.0 up to but not including 1.141.1) is achievable through a pat

CVE-2026-47281 CRITICAL
9.6 Jun 09

Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over

CVE-2021-43891 HIGH
7.8 Dec 15

Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent

CVE-2026-121663 HIGH
8.8 Nov 10

Security feature bypass in Visual Studio Code before 1.145.3 allows an unauthenticated remote attacker to evade a securi

CVE-2026-119975 HIGH
8.8 Nov 10

Cross-site scripting in Visual Studio Code before 1.145.3 can let unauthenticated, network-reachable attackers run attac

CVE-2026-57102 HIGH
8.8 Jul 14

Security-feature bypass in Microsoft Visual Studio Code lets a remote attacker deliver functionality from an untrusted c

CVE-2026-59113 HIGH
8.8 Aug 11

Remote code execution in Visual Studio Code (versions 1.0.0 through 1.132.0) is enabled by a missing authorization check

CVE-2026-69370 HIGH
8.8 Oct 13

Command injection in Visual Studio Code 1.0.0 through 1.141.0 allows an unauthenticated remote attacker to execute arbit

CVE-2026-70336 HIGH
8.8 Aug 11

Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary co

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy