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.

Get ahead of threats like this
Mallory correlates global threat intelligence with your attack surface — know if you’re exposed before adversaries strike.
How this story unfolded
2 events from the most recent confirmed update back to the earliest known activity.
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.
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.
Sources
4 references tracked. Mallory keeps watching after this page renders.
CVE-2026-41613 - Security Update Guide - Microsoft - Visual Studio Code Elevation of Privilege Vulnerability
msrc.microsoft.com
Open sourceCVE-2025-24042 - Security Update Guide - Microsoft - Visual Studio Code JS Debug Extension Elevation of Privilege Vulnerability
msrc.microsoft.com
Open sourceCVE-2025-24042 - Security Update Guide - Microsoft - Visual Studio Code JS Debug Extension Elevation of Privilege Vulnerability
msrc.microsoft.com
Open sourceCVE-2025-24039 - Security Update Guide - Microsoft - Visual Studio Code Elevation of Privilege Vulnerability
msrc.microsoft.com
Open sourceSee the full picture, correlated to your attack surface.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.


