Unconfirmed Remote Host Connection via Workspace File
HighCVE-2026-47281 · Published Jun 9, 2026
## VS Code - Elevation of Privilege Vulnerability An elevation of privilege vulnerability exists in VS Code 1.123.0 and earlier versions where a user who is tricked into opening a crafted `.code-workspace` file containing a direct `host:port` remote authority could have their extension host backend silently connected to an attacker-controlled server without confirmation. ### Patches The fix is available starting with **VS Code 1.123.1**. The fix ([9505d0f](https://github.com/microsoft/vscode/commit/9505d0fca49eadb707c450d18dcb41a46b720a9e)) mitigates this by prompting the user for confirmation before connecting to any non-loopback remote `host:port` authority. ### Workarounds Avoid opening `.code-workspace` files from untrusted sources. ### References - The patch for this can be found at [9505d0f](https://github.com/microsoft/vscode/commit/9505d0fca49eadb707c450d18dcb41a46b720a9e) - An issue for this can be found at [#320645](https://github.com/microsoft/vscode/issues/320645) - MSRC details for this can be found at [https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-47281](https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-47281)
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| vscode Product | < 1.123.1 | 1.123.1 |
Details and references
More Microsoft advisories
All Microsoft| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Jul 2 | Microsoft 365 Copilot: open redirect | Critical9.3 | No fix yet |
| Jul 2 | Microsoft Azure Synapse: improper access control | Medium4.8 | No fix yet |
| Jul 1 | Microsoft Edge (Chromium-based): use after free | High8.3 | 149.0.4022.68 |
| Jun 9 | GitHubCredentialProvider - Regex substring host match sends Basic-auth tokens | High | 1.123.1 |
| Jun 9 | Path traversal in profile snippets import allows writing files outside the profile directory (Zip-Slip) | Medium | 1.123.1 |
| Jun 9 | Auto-Approved File Write via Unconfirmed Environment-Variable Path Redirection | Low | 1.123.1 |