Incorrect Privilege Assignment in Visual Studio Code - CVE-2026-102851

 

Incorrect Privilege Assignment in Visual Studio Code - CVE-2026-102851

Published: October 13, 2026


Vulnerability identifier: #VU154289
CSH Severity: Medium
CVSS v4: 5.7 [CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-102851
CWE-ID: CWE-266
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to bypass the per-server sandbox policy.

The vulnerability exists due to incorrect privilege assignment in Visual Studio Code's sandboxed MCP server feature when running an attacker-controlled sandboxed server alongside another sandboxed server. A local user can convince a user to add and start a specially crafted server that writes into the other server's directory to bypass the per-server sandbox policy.

Successful exploitation requires specific conditions, such as particular protocol settings or configurations.


Affected software

Visual Studio Code

How to mitigate CVE-2026-102851

Install security update from vendor's website.

Visual Studio Code - update to 1.141.1

External References

Related Security Bulletins