Skip to content
NewCybercrime Report 2026 · Eight Chapters · A Post Is Not An Incident → Explore The ChaptersCybercrime Report 2026 → Explore

Visual Studio Code MCP Code Injection (CVE-2026-120779)

CVE-2026-120779 is a code injection vulnerability in Microsoft Visual Studio Code.

Reviewed by
Brandefense Analyst Team
Published
Reading Time
3 min read
CVE ID
CVE-2026-120779
Vendor
Microsoft
Affected Product
Visual Studio Code
Exploitation
Not confirmed
Published
2026-11-10

Microsoft says an unauthenticated attacker controlling a remote MCP server could persuade a user to connect the editor and click a crafted notification link. Successful exploitation could run code with that user's permissions.Microsoft published the issue on 10 November 2026 and lists Visual Studio Code build 1.145.3 as the security update. Its CNA record identifies releases from 1.0.0 up to, but excluding, 1.145.3 as affected. Teams should compare the installed build with that boundary before scheduling the update.

What it allows

How Does CVE-2026-120779 Work?

Microsoft classifies the flaw as improper control of generated code. Its advisory describes a remote MCP server controlled by an unauthenticated attacker. The attacker would first convince a user to connect Visual Studio Code to that server, then persuade the user to click a crafted notification link.

Microsoft says the resulting code execution would use the user's permissions. The published advisory does not describe the internal validation failure, so this profile does not infer a deeper mechanism. Review connected MCP servers and user permissions while evaluating the exposure.

For inventory and prioritization, record the affected editor build in a vulnerability intelligence platform review. The network attack vector does not remove the required user interaction: Microsoft's CVSS 3.1 vector marks UI:R and PR:N. The score describes potential impact, not a confirmed attack.

What Do Microsoft and CISA Say About Exploitation?

At its 10 November publication, Microsoft marked the issue as not publicly disclosed and not exploited. That is Microsoft's dated assessment, not a guarantee about later activity. CISA's 30 November 2026 KEV catalog did not list CVE-2026-120779.

A GitHub repository-name search on 1 December 2026 returned 1 public repository named with this CVE. The unit is a matching repository, not a verified proof of concept or an incident. Treat that count as a research signal while prioritizing the vendor's fixed build.

Who is affected

Version Check

Visual Studio Code
Release LineAffected RangeFixed In
1.x1.0.0 to before 1.145.31.145.3
Release ranges source

For distribution packages and custom builds, check the supplier’s advisory.

Which CVE-2026-120779 Builds Are Affected?

Microsoft's CNA record marks Visual Studio Code versions from 1.0.0 through versions below 1.145.3 as affected. MSRC lists build 1.145.3 in its 10 November security-update row. The record gives one product range; it does not identify a separate platform-specific boundary.

The described scenario requires a user to connect Visual Studio Code to an attacker-controlled remote MCP server and click a crafted notification link. Those conditions are part of the vendor's exploit description. They do not narrow the CNA's stated version range, so check the installed build even when MCP use is not known.

How Should Teams Verify the Update?

Inventory installed Visual Studio Code builds, then install Microsoft build 1.145.3 or a later vendor-confirmed fixed release. After the update, confirm the build reported by the running editor on each managed workstation. Record the result in the vulnerability management process.

Review approved MCP server connections and the permissions of users who work with them. If a team investigates suspicious activity, preserve relevant editor and endpoint records under its incident process. The CISA KEV catalog definition explains why catalog absence is a dated observation rather than proof of safety.

Timeline

  1. 2026-11-10

    Microsoft published the advisory and listed Visual Studio Code build 1.145.3 as the security update.

What to do

  1. Inventory editor builds

    Identify installed Visual Studio Code builds and the managed users who connect the editor to remote MCP servers. Prioritize versions below 1.145.3.

  2. Apply the Microsoft update

    Update affected installations to Visual Studio Code 1.145.3 or a later vendor-confirmed fixed build.

  3. Verify the running build

    After installation, confirm the running editor reports build 1.145.3 or a later vendor-confirmed fixed release. Record the build and update date.

  4. Review MCP connections

    Check which remote MCP servers users have connected and review endpoint activity when an untrusted connection or notification interaction needs investigation.

What Brandefense can do

Frequently Asked Questions

Does CVE-2026-120779 require a user to click?

Yes. Microsoft says the user must connect Visual Studio Code to an attacker-controlled remote MCP server and click a crafted notification link.

Which Visual Studio Code build fixes CVE-2026-120779?

MSRC lists build 1.145.3 as the security update. Microsoft's CNA record marks versions below 1.145.3, starting at 1.0.0, as affected.

What permissions could the attacker gain?

Microsoft says successful exploitation could execute code with the permissions of the user who clicked the crafted notification link.

What does Microsoft's exploitation assessment say?

Microsoft marked the issue not exploited at original publication on 10 November 2026. That dated assessment does not establish its current exploitation status.

Sources

  1. Visual Studio Code Remote Code Execution VulnerabilityMicrosoft Security Response Center
  2. CVE-2026-120779 Microsoft CNA RecordMicrosoft via CVE.org
  3. Known Exploited Vulnerabilities CatalogCISA
ShareLinkedInX
Brandefense logo

Stay Ahead of Digital Threats.

Take control of your digital security with an exclusive demo of our AI-driven threat intelligence platform.

Open The Full Demo Form →