Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious file/repo with script HTML
-
DeliveryLure developer to open in VS Code
-
ExploitWebview renders unsanitized tags
-
ExecutionInjected script executes in editor context
-
ImpactLocal code execution on developer host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization HTML tag escaping
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to open and render attacker-controlled content inside Visual Studio Code (AV:L, UI:R) - for example a crafted file, Markdown preview, notebook output, or workspace containing unsanitized script-related HTML tags (CWE-80). No authentication or prior privileges are needed on the attacker's side (PR:N), but the attack cannot succeed without that user interaction and is not automatable (SSVC Automatable: no), which are the primary limiting factors. Using Workspace Trust/Restricted Mode or refraining from opening untrusted content prevents the rendering step the exploit depends on. Affected only on Visual Studio Code versions below 1.119.1. |
| Impact | Signals are largely consistent and point to a genuine-but-not-urgent issue. The CVSS 7.8 vector is AV:L (local attack vector) with AC:L, PR:N, and UI:R, meaning no privileges are needed but the victim must open attacker-supplied content; impact is total (C:H/I:H/A:H), matching the SSVC 'Technical Impact: total' rating. Countervailing signals lower real-world urgency: EPSS is 0.05% (16th percentile), SSVC records Exploitation as 'none' and Automatable as 'no', there is no CISA KEV listing, and no public exploit is identified. The combination of high technical impact but non-automatable, interaction-dependent, local exploitation makes this a patch-on-normal-cycle priority rather than an emergency, though developer workstations are high-value targets. Note a mild tension worth flagging: AV:L plus UI:R describes a social-engineering delivery (open a malicious repo/file), not remote unauthenticated compromise - treat any 'remote/unauthenticated' framing with caution. |
| Exploit ScenarioDerived | An attacker crafts a malicious file, notebook, or repository whose content embeds script-bearing HTML and lures a developer into opening it in VS Code (for example via a shared project or a pull request). When the victim previews or otherwise renders the content in a VS Code webview, the injected script executes in the editor's privileged context and runs code on the developer's machine. No public proof-of-concept has been identified at time of analysis, and the local vector plus required user interaction mean delivery relies on social engineering. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Local code execution in Microsoft Visual Studio Code before 1.119.1 stems from improper neutralization of script-related HTML tags (basic XSS, CWE-80) rendered within the editor's webview surfaces, letting an attacker who tricks a user into opening crafted content run code in the victim's context. Exploitation requires user interaction (opening a malicious file/workspace) and is reported by Microsoft with a patch available; there is no public exploit identified at time of analysis, and EPSS is negligible at 0.05% (16th percentile).
RemediationAI
Vendor-released patch: upgrade to Visual Studio Code 1.119.1 or later, which is the first version outside the affected range per EUVD; consult the Microsoft advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-41611 for the exact build and channel details. Enabling VS Code auto-update ensures the fix is applied on next launch. Until updated, reduce exposure by not opening untrusted files, repositories, or workspaces, and use Workspace Trust / Restricted Mode so that automatic features (Markdown preview rendering, extension webviews, notebook execution) that could render attacker HTML stay disabled for untrusted content - the trade-off is reduced convenience/functionality when working in untrusted folders. Limiting installation of untrusted extensions further shrinks the set of webview surfaces that could carry a malicious payload.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in 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/Chromium-based editor that renders many surfaces (Markdown previews, extension webviews, notebook outputs, hover cards) as HTML. CWE-80 (Improper Neutralization of Script-Related HTML Tags - basic XSS) indicates that attacker-controlled content containing tags such as <script> or event-handler attributes is inserted into one of these HTML contexts without adequate sanitization. Because VS Code webviews run with elevated privileges relative to a normal browser page and can bridge to the extension host, injected script can escalate from DOM execution toward local code execution, consistent with the CVSS scope-unchanged, high-impact rating. The only affected CPE is cpe:2.3:a:microsoft:visual_studio_code:*, i.e. the desktop editor itself rather than a specific extension.
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
Sources disagree (Low–High)AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Attacker delivers content the victim must open locally (AV:L, UI:R) with no attacker privileges (PR:N); XSS bridging to code execution yields total local impact (C/I/A:H).
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
Improper neutralization of script-related html tags in a web page (basic xss) in Visual Studio Code allows an unauthorized attacker to execute code locally.
Executive ViewAI
Microsoft Visual Studio Code versions before 1.119.1 contain a code execution vulnerability in the webview component that could allow attackers to compromise developer systems if users open malicious files or workspaces. While the vendor has released a patch and no public exploit has been identified, this affects the integrity of the development pipeline and poses risk to code repositories and intellectual property handled by developers daily.
Apply vendor patch.
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-29694
NVD
CVE.org
EPSS
Vulnrichment
VulDB
GitHub PoC
Exploit-DB