Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious file/repo with XSS payload
-
DeliveryLure developer to open it locally
-
ExploitVS Code renders unsanitized content
-
ExecutionScript executes in editor context
-
ImpactBypass 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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.
Primary rating from Vendor (microsoft).
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
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
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.
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 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
Remote code execution in Visual Studio Code versions 1.0.0 through 1.141.1 allows an unauthenticated, network-positioned
Authorization bypass in Visual Studio Code versions 1.0.0 through 1.136.1 allows an unauthenticated network attacker to
EUVD-2026-44276
GHSA-8vjh-hxqp-x752
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB