Skip to main content

Visual Studio Code CVE-2026-57101

| EUVDEUVD-2026-44276 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-14 microsoft GHSA-8vjh-hxqp-x752
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious file/repo with XSS payload
  2. Delivery
    Lure developer to open it locally
  3. Exploit
    VS Code renders unsanitized content
  4. Execution
    Script executes in editor context
  5. Impact
    Bypass security-feature sandbox

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 the victim to locally open or preview attacker-crafted content in VS Code - the CVSS UI:R confirms mandatory user interaction, and AV:L confirms local delivery rather than remote/network exploitation; no authentication is needed (PR:N). The concrete prerequisite is that the user renders untrusted input on one of VS Code's HTML surfaces (webview/Markdown preview/notebook renderer/extension content) that fails to neutralize the injected script. Limiting factors: the attack cannot be triggered remotely without the user opening the malicious content, Workspace Trust/Restricted Mode can blunt the trust-dependent surfaces, and patched builds remove the injection path. The exact triggering surface is not specified in the available data and should be confirmed against the Microsoft advisory.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N) describes a locally-delivered, low-complexity, unauthenticated issue that requires the victim to interact - consistent with a social-engineering delivery (open a malicious repo/file/notebook) rather than remote drive-by. The high confidentiality and integrity impact reflects meaningful editor-context compromise, but the local vector and mandatory user interaction materially lower real-world exploitability versus a network-facing RCE. No EPSS score, POC, or KEV entry was provided, so exploitation appears theoretical at this stage: this is a patch-in-normal-cycle priority for most environments, elevated for developer fleets that routinely open untrusted third-party repositories. Note a scope consideration to verify with the vendor: the description frames the impact as 'bypass a security feature locally,' which is narrower than full arbitrary code execution - the C:H/I:H rating may reflect what a bypassed sandbox subsequently enables rather than the XSS alone.

Exploit ScenarioDerived

An attacker publishes a repository or file (README, notebook, or extension-rendered content) containing an XSS payload and lures a developer into opening it in VS Code. When the victim opens or previews the crafted content, the injected script executes inside the editor's privileged rendering context and bypasses the intended sandbox/security feature. No public exploit was identified at time of analysis; the local vector and required user interaction mean the attacker depends on social engineering.

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

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

Alert me

AnalysisAIv1 – Jul 14, 2026

Cross-site scripting in Microsoft Visual Studio Code lets an attacker who tricks a local user into opening crafted content bypass a built-in security feature and gain high-impact code execution within the editor context. The flaw (CWE-79) carries a CVSS 3.1 base score of 7.1 with a local attack vector requiring user interaction, and Microsoft has published an advisory with a fix. There is no public exploit identified at time of analysis and the CVE is not listed in CISA KEV.

RemediationAI

Patch available per vendor advisory - update Visual Studio Code to the fixed build referenced in Microsoft's MSRC guidance at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-57101 (exact fixed version not stated in the available data; confirm on that page). VS Code's auto-update should deliver the fix, but managed/offline installs and portable copies must be updated manually, so verify the running version after applying. As interim compensating controls, avoid opening untrusted repositories, files, or notebooks and use Restricted Mode (Workspace Trust) so untrusted workspaces run with reduced capabilities - trade-off: Restricted Mode disables some extensions and tasks and can interrupt normal workflows. Where feasible, disable or limit exposure to the affected rendering surface (e.g. Markdown preview, notebook renderers, or untrusted webview extensions) for high-risk workflows, accepting reduced editor functionality until patched.

Affected VersionsENISA

Visual Studio Code 1.0.0 <1.128.1

Affected Packages

euvd visual_studio_code fix: 1.128.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 desktop editor that renders large portions of its UI - including webviews, notebook renderers, Markdown previews, and extension surfaces - as HTML inside a privileged renderer process. CWE-79 (improper neutralization of input during web page generation) here means attacker-controlled data (e.g. content in a file, workspace, notebook, or extension-provided HTML) is injected into one of these HTML surfaces without adequate sanitization, allowing script to execute in a context it should not reach. The CPE cpe:2.3:a:microsoft:visual_studio_code:*:*:*:*:*:*:*:* indicates the desktop application itself is affected across unspecified versions. Because VS Code's webview/CSP model is precisely the 'security feature' designed to sandbox untrusted content, an XSS that escapes it undermines the isolation boundary between rendered content and editor privileges.

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

Vendor (microsoft) PRIMARY HIGH
NVD 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
ENISA EUVD HIGH
vuln.today AI 7.1 HIGH

Local delivery of crafted content (AV:L) requiring the user to open it (UI:R), no auth (PR:N); a bypassed sandbox yields high confidentiality/integrity impact but no availability effect.

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

Primary rating from Vendor (microsoft).

CVSS VectorNVD

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

Lifecycle Timeline

3
Severity Changed
Jul 16, 2026 - 15:52 NVD
HIGH MEDIUM
CVSS changed
Jul 16, 2026 - 15:52 NVD
7.1 (HIGH) 6.1 (MEDIUM)
CVE Published
Jul 14, 2026 - 17:09 nvd
HIGH 7.1

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.

Executive ViewAI

Why It Matters

A vulnerability in Microsoft Visual Studio Code allows attackers to execute code on developer machines when they open specially crafted files. Since developers regularly receive and open files from multiple sources, this creates significant risk of development environment compromise and potential unauthorized code injection into enterprise systems. An immediate patch is available from Microsoft and should be deployed enterprise-wide.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 66% exploitable
Prevalence
High
one of the most widely deployed developer editors, huge developer install base
Threat Intel
1
1 sources
Vendor Status
Publicly Disclosed:No
Exploited:No
Latest Software Release:Exploitation Less Likely
Data Quality
6 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.4%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

CVE-2026-102235 HIGH
8.8 Oct 13

Remote code execution in Visual Studio Code versions 1.0.0 through 1.141.1 allows an unauthenticated, network-positioned

CVE-2026-78462 HIGH
8.8 Sep 08

Authorization bypass in Visual Studio Code versions 1.0.0 through 1.136.1 allows an unauthenticated network attacker to

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