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
Share

Severity by source

Vendor (microsoft) PRIMARY
HIGH
qualitative
NVD
6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
ENISA EUVD
HIGH
qualitative
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

4
Severity Changed
Jul 16, 2026 - 15:52 NVD
HIGH MEDIUM
CVSS changed
Jul 16, 2026 - 15:52 NVD
7.1 (HIGH) 6.1 (MEDIUM)
Analysis Generated
Jul 14, 2026 - 18:56 vuln.today
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.

AnalysisAI

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.

Technical ContextAI

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.

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.

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-47281 CRITICAL
9.6 Jun 09

Privilege escalation in Microsoft Visual Studio Code allows remote unauthenticated attackers to elevate privileges over

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-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-69320 HIGH
8.8 Aug 11

OS command injection in Visual Studio Code exposes victims to remote code execution when they interact with attacker-con

CVE-2026-41109 HIGH
8.8 May 12

Security-feature bypass in GitHub Copilot and Visual Studio (affecting Visual Studio Code builds before 1.119.1) lets a

CVE-2026-41613 HIGH
8.8 May 12

Privilege elevation in Microsoft Visual Studio Code (all releases from 1.0.0 up to but not including 1.119.1) stems from

CVE-2024-43488 CRITICAL
9.8 Oct 08

Missing authentication for critical function in Visual Studio Code extension for Arduino allows an unauthenticated attac

CVE-2026-50520 HIGH
8.4 Jul 14

Local code execution in Microsoft Visual Studio Code stems from a command injection flaw (CWE-77) that lets an attacker

CVE-2026-45482 HIGH
8.4 Jun 09

Security feature bypass via path traversal in GitHub Copilot and Visual Studio Code allows a local unauthorized attacker

Share

CVE-2026-57101 vulnerability details – vuln.today

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