Abstract illustration of connected devices separated by a protected security boundary.
Opening a specially crafted workspace in Visual Studio Code could allow code to run even if the user never grants the workspace trust. Microsoft rates CVE-2026-78462, the Visual Studio Code Security Feature Bypass Vulnerability, as Important. For Visual Studio Code, update to fixed build 1.136.2 or later.

Abstract illustration of connected devices separated by a protected security boundary. Why withholding trust isn’t enough​

Workspace Trust is meant to let a user open a workspace without giving its content permission to run commands or code. Microsoft’s advisory distinguishes two decisions: an attacker must persuade someone to open the workspace, but does not need to persuade them to trust it.

According to Microsoft, the crafted workspace could cause Visual Studio Code to connect to an attacker-controlled service and bypass Workspace Trust restrictions. The attacker could then access local data or execute code with the user’s permissions. Microsoft classifies the weakness as CWE-639, an authorization bypass through a user-controlled key that allows an unauthorized attacker to bypass a security feature over a network.

What to verify on developer machines​

For administrators, the useful check is the installed Visual Studio Code build, not whether developers routinely decline to trust unfamiliar workspaces. Withholding trust is precisely the safeguard this flaw can defeat. Verify that the editor itself is at 1.136.2 or later before treating the issue as remediated.

Microsoft’s advisory gives the following risk details:

  • CVSS base score: 8.8; temporal score: 7.7
  • CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
  • Exploitation assessment: Exploitation Less Likely
  • Publicly disclosed: No
  • Exploited: No
  • Customer action required: Yes
 

References

  1. Official MSRC or vendor evidence api.msrc.microsoft.com
  2. Official MSRC or vendor evidence msrc.microsoft.com
  3. Official MSRC or vendor evidence api.msrc.microsoft.com