Microsoft Fixes Visual Studio Code Elevation of Privilege Flaws
Vulnerability Disclosure · 4 sources · Updated 5mo ago · First seen May 25, 2026

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


