Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilitywidely-deployed-product-advisoryidentity-authentication-vulnerabilityprivilege-escalation-technique

Microsoft Fixes Visual Studio Code Elevation of Privilege Flaws

Vulnerability Disclosure · 4 sources · Updated 5mo ago · First seen May 25, 2026

Microsoft Fixes Visual Studio Code Elevation of Privilege Flaws

Microsoft disclosed and patched multiple elevation of privilege vulnerabilities affecting Visual Studio Code and its JS Debug Extension, including CVE-2025-24039, CVE-2025-24042, and CVE-2026-41613. The latest issue, CVE-2026-41613, is rated Important with a CVSS 3.1 score of 8.8 and is described as a session fixation flaw mapped to CWE-384 and CWE-78. Microsoft said the vulnerability affects Visual Studio Code itself, while the earlier 2025 advisories cover separate privilege-escalation bugs in the core product and the JS Debug Extension.

According to Microsoft, exploitation of CVE-2026-41613 requires user interaction, specifically convincing a target to open a malicious file in VS Code, and could allow an attacker to obtain the permissions of the MCP Server’s managed identity. Microsoft said the flaw was not publicly disclosed and not exploited at the time of release, assessed exploitation as less likely, and made a fix available; the issue was credited to Elad Luz of Oasis Security through coordinated disclosure.

Why it matters

Summary

Microsoft patched multiple elevation-of-privilege vulnerabilities in Visual Studio Code and its JS Debug Extension, including CVE-2026-41613, which carries a CVSS 3.1 score of 8.8. The primary risk is to developers, engineering workstations, and organizations using VS Code with MCP Server-integrated workflows, where opening a malicious file could let an attacker inherit the MCP Server managed identity's permissions.

Impact assessment

The affected population includes enterprises, software developers, DevOps teams, and managed development environments that rely on Visual Studio Code and the JS Debug Extension. Organizations using managed identities tied to cloud resources are at higher risk because successful exploitation could enable unauthorized access to or actions against resources reachable by that identity.

Severity is high at the workstation and attached-resource level because Microsoft rates CVE-2026-41613 as Important with high confidentiality, integrity, and availability impact. The blast radius is constrained to the permissions of the compromised managed identity; Microsoft states the flaw does not directly grant broader tenant-wide or administrator privileges.

Scope appears broad in terms of product footprint because VS Code is widely deployed, but exploitation requires targeted user interaction. Microsoft states CVE-2026-41613 was not publicly disclosed and not exploited in the wild at publication, and assessed exploitation as less likely.

Structured facts

  • Affected entities: Microsoft Visual Studio Code; Visual Studio Code JS Debug Extension
  • Vulnerability types: elevation of privilege; session fixation
  • Primary affected users: developers, engineering endpoints, DevOps users, cloud-connected development environments
  • Known exploitation: none reported by Microsoft at publication
  • Disclosure status: not publicly disclosed at publication
  • Reporter: Elad Luz, Oasis Security
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

2 events · Feb 11, 2025 – May 12, 2026
  1. May 12, 20267mo ago

    Microsoft discloses and fixes CVE-2026-41613 in Visual Studio Code

    Microsoft disclosed CVE-2026-41613, an Important elevation of privilege vulnerability in Visual Studio Code described as a session fixation issue with a CVSS 3.1 score of 8.8. Microsoft said exploitation requires a user to open a malicious file, no public exploitation or prior public disclosure was known, and a fix was available; the flaw was credited to Elad Luz of Oasis Security.

  2. Feb 11, 20252y ago

    Microsoft releases fixes for two VS Code elevation of privilege flaws

    Microsoft published Security Update Guide entries for CVE-2025-24039 affecting Visual Studio Code and CVE-2025-24042 affecting the Visual Studio Code JS Debug Extension. The advisories indicate the vulnerabilities were disclosed as part of Microsoft's February 2025 security updates.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Vulnerabilities

1 linked

Affected products

1 linked
Visual Studio Code
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.