Skip to main content

Visual Studio Code CVE-2026-41611

| EUVDEUVD-2026-29694 LOW
Basic XSS (CWE-80)
2026-05-12 microsoft
Low
Disputed · 3.3 NVD
Temporal: 6.8
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious file/repo with script HTML
  2. Delivery
    Lure developer to open in VS Code
  3. Exploit
    Webview renders unsanitized tags
  4. Execution
    Injected script executes in editor context
  5. Impact
    Local 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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

Visual Studio Code 1.0.0 <1.119.1

Affected Packages

euvd visual_studio_code fix: 1.119.1

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)
NVD PRIMARY 3.3 LOW
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
ENISA EUVD HIGH
CIRCL (temporal) 6.8 MEDIUM
vuln.today AI 7.8 HIGH

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

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

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

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

Lifecycle Timeline

3
Severity Changed
Oct 26, 2026 - 18:23 NVD
HIGH LOW
CVSS changed
Oct 26, 2026 - 18:23 NVD
7.8 (HIGH) 3.3 (LOW)
CVE Published
May 12, 2026 - 16:58 nvd
HIGH 7.8

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Prevalence
Ubiquitous
dominant cross-platform developer code editor, installed on most dev workstations
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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Scheduled
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

21
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +16
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