Skip to content
MicrosoftGHSA-v282-cxqj-xgj4

Remote Code Execution Vulnerability

HighCVE-2026-57102 · Published Jul 14, 2026

A remote code execution vulnerability exists in VS Code 1.128.0 and earlier versions where, if you host a standalone VS Code server via `code serve-web` or similar, an attacker with knowledge of the domain could retrieve the connection token used for the server. ### Patches The fix is available starting with **VS Code 1.128.1**. The fix (https://github.com/microsoft/vscode/commit/236fa7d8ea86f0f4261df38e1a17b3c7e7002bd0) mitigates this attack by performing validation of the origin of webview messages. ### Workarounds Do not use `code serve-web` or similar on versions of VS Code <=1.128.0 ### References * The patch for this can be found at https://github.com/microsoft/vscode/commit/236fa7d8ea86f0f4261df38e1a17b3c7e7002bd0 * An issue for this can be found at https://github.com/microsoft/vscode/issues/325836 * MSRC details for this can be found at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-57102

GitHub advisory

Affected versions

PackageAffectedFixed in
vscode
Product
< 1.128.11.128.1
Details and references

More Microsoft advisories

All Microsoft
Advisory
Secret exfiltration vulnerability
HighJul 14
Workspace Trust Security Feature Bypass Vulnerability
HighJul 14
Microsoft .NET 8.0: unsafe deserialization
High7.8Jul 14
Microsoft .NET 8.0: code injection
High7.8Jul 14
Microsoft .NET 10.0: resource exhaustion
High7.5Jul 14
Microsoft .NET 10.0: spoofing
Medium6.5Jul 14

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.