CVE-2026-47281: Elevation of Privilege in Microsoft Visual Studio Code via malicious workspace file
- Vendor
- Microsoft Corporation
CVE-2026-47281 is an elevation of privilege vulnerability in Microsoft Visual Studio Code. Available descriptions characterize the issue as involving missing authorization and improper input validation. The vulnerability is triggered when a user opens a malicious workspace file in Visual Studio Code, after which an unauthorized attacker can exploit the flaw over a network. Microsoft rates the issue as Important, and the published CVSS v3.1 vector indicates network attackability, low attack complexity, no required privileges, required user interaction, and scope change. Successful exploitation can result in privilege escalation from the Visual Studio Code context to SYSTEM privileges.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows an unauthorized attacker to elevate privileges and potentially obtain SYSTEM-level privileges on the affected host. Because the vulnerability has changed scope, impact is not limited to the Visual Studio Code process and may extend to the broader local system, including compromise of files, settings, and other protected resources. The published CVSS metrics indicate high impact to confidentiality, integrity, and availability.
Mitigation
If you can’t patch tonight, do this now.
Do not open untrusted or unknown Visual Studio Code workspace files. Restrict use of .code-workspace files to trusted sources only until the vendor fix has been applied. In enterprise environments, reduce exposure by enforcing trusted-content handling practices for developer workspaces and limiting opportunities for users to open externally supplied workspace files.
Remediation
Patch, then assume compromise.
Apply the Microsoft security update for Visual Studio Code associated with CVE-2026-47281 through the vendor’s release channel. Organizations should prioritize deployment as part of the June 2026 Microsoft security updates after standard validation and testing procedures for affected Visual Studio Code installations.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-47281 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-47281 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-47281?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-47281.
- Is there a patch for CVE-2026-47281?
- Apply the Microsoft security update for Visual Studio Code associated with CVE-2026-47281 through the vendor’s release channel. Organizations should prioritize deployment as part of the June 2026 Microsoft security updates after standard validation and testing procedures for affected Visual Studio Code installations.
- What products are affected by CVE-2026-47281?
- Microsoft Corporation Visual Studio Code.
- How severe is CVE-2026-47281?
- CVE-2026-47281 has a CVSS v3.1 score of 9.6 (Critical) and an EPSS score of 0.83% (55th percentile) as of Sep 25, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.