Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted file to developer machine
-
DeliveryVictim opens file in VS Code
-
ExploitVictim activates webview preview feature
-
ExecutionXSS payload renders in webview
-
PersistScript escapes webview sandbox boundary
-
ImpactSensitive 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:L/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
2DescriptionNVD
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Visual Studio Code
View allVisual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent
Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 8.8), this vulnerability is remotely e
Security-feature bypass in Microsoft Visual Studio Code before 1.136.2 lets a remote, unauthenticated attacker defeat a
Remote code execution in Visual Studio Code (versions 1.0.0 up to but not including 1.141.1) is achievable through a pat
Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over
Visual Studio Code Remote Code Execution Vulnerability. Rated high severity (CVSS 7.8), this vulnerability is no authent
Security feature bypass in Visual Studio Code before 1.145.3 allows an unauthenticated remote attacker to evade a securi
Cross-site scripting in Visual Studio Code before 1.145.3 can let unauthenticated, network-reachable attackers run attac
Security-feature bypass in Microsoft Visual Studio Code lets a remote attacker deliver functionality from an untrusted c
Remote code execution in Visual Studio Code (versions 1.0.0 through 1.132.0) is enabled by a missing authorization check
Command injection in Visual Studio Code 1.0.0 through 1.141.0 allows an unauthenticated remote attacker to execute arbit
Remote code execution in Microsoft Visual Studio Code allows a network-based attacker to inject and execute arbitrary co
EUVD-2026-29693
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB