VS Code 1.145.3 Security Update: Patch 17 Flaws Now

The VS Code 1.145.3 security update, released November 10, 2026, closes 17 security issues in Visual Studio Code. They include remote code execution bugs in JavaScript debugger auto-attach, MCP install links, MCP servers and Workspace Trust. If code --version prints anything older than 1.145.3, update now (1.146.0 is fine too) and update the VS Code Server on your remote hosts. If you can't update today, stop opening untrusted folders, links and MCP servers, and turn off JavaScript auto-attach until you can.

Written November 15, 2026. Facts checked on November 15, 2026 (KST) against the VS Code 1.145 and 1.146 release notes, the closed issues in the GitHub milestone 1.145.3, the microsoft/vscode GitHub security advisories, and the VS Code docs for Linux setup, Workspace Trust, Node.js debugging and the FAQ. The commands and example output below are my own examples, not Microsoft templates. I have not reproduced any of these bugs.

What the VS Code 1.145.3 security update fixes

VS Code 1.145.0 shipped on November 4. Two bug-fix builds followed on November 6. Then Microsoft published 1.145.3 on November 10, 2026 (Patch Tuesday), and the release notes describe it in one line: "The update addresses these security issues." The linked GitHub milestone holds 17 closed issues, all labeled security. All of them were fixed on the release/1.145 branch.

Microsoft also published GitHub security advisories the same day. The first page of the advisory list shows 10 of them: 9 rated High and 1 Moderate. Every advisory I opened says the same thing: affected versions are "before 1.145.3", and the patched version is 1.145.3.

IssueCVEAttacker needs you to…
RCE via JavaScript debugger auto-attach (CVSS 7.7)CVE-2026-70094Open a malicious folder or repo
RCE via network Workspace Trust bypass (CVSS 7.2)CVE-2026-119985Open a remote .code-workspace link
RCE via malicious MCP install linksCVE-2026-114171Open a vscode:mcp/install link and approve
RCE via unvalidated MCP SSE endpointsCVE-2026-119983Connect to a malicious MCP server (legacy SSE)
RCE via MCP elicitation notificationsCVE-2026-120779Click a link from a malicious MCP server
RCE via serve-web release downgradeCVE-2026-120780Visit a crafted link while logged in to serve-web
Command execution via agent local commands (Moderate)CVE-2026-120782Grant a session tool permission to a poisoned prompt

The other ten issues are Workspace Trust bypasses (prototype pollution in workspace configuration, settings group key override, restricted settings written as flat dotted keys, unregistered experiment overrides, and a missing or non-boolean security.workspace.trust.enabled treated as "off"). They also include extension marketplace text rendered as Markdown, crafted publisher names in the extension trust dialog, inherited publisher names in the allowed-extensions policy, information disclosure through integrated browser file uploads and UNC image paths in Markdown previews, and CSS injection through notebook font settings.

VS Code 1.145.3 security update overview: debugger auto-attach, Workspace Trust, MCP and serve-web remote code execution fixes, each needing a user action such as opening a folder or link
What 1.145.3 fixes and what each attack needs

How serious is it?

None of the advisories I read mention exploitation in the wild, and the CVSS vectors I checked mark exploit maturity as "Unproven" (E:U). Every bug needs you to do something: open a folder, click a link, approve an MCP install or connect to a server. That is still a low bar for developers, who clone unknown repositories all day. The worst one, CVE-2026-70094, triggers when you open a malicious folder. You don't need to start a debug session or run a task, according to the issue text.

If you use AI agents in VS Code, five of the issues sit on that surface (MCP links, MCP SSE, MCP elicitation, agent local commands, the integrated browser). I covered the wider risk of agent tooling in EMBRACE flaws in AI coding tools. It is the same story: a repository or server you didn't write can steer your editor.

Check your VS Code version (desktop, CLI and remote)

There are three places to check: the desktop app, any VS Code Server on remote machines, and any code serve-web instance.

Check VS Code version in three places: Help About or code --version on the desktop, the VS Code Server folder on SSH hosts and WSL, and code serve-web instances
Three places an old VS Code build can hide

1. Desktop app

From the menu: Help > About on Windows and Linux, Code > About Visual Studio Code on macOS. The first "Version" line is the one that matters.

From a terminal:

code --version

Example output on a patched machine:

1.145.3
<COMMIT_HASH>
arm64

How to read it:

  • 1.145.2 or older: vulnerable. Update now.
  • 1.145.3: patched.
  • 1.146.0 or newer: patched. 1.146.0 came out November 11, a day after 1.145.3, and the advisories mark only versions "before 1.145.3" as affected.

On Linux, ask the package manager too, because it decides what you get:

apt list --installed code 2>/dev/null   # Debian / Ubuntu
rpm -q code                             # Fedora / RHEL
snap list code                          # Snap

On Windows with winget:

winget list --id Microsoft.VisualStudioCode -e

On macOS with Homebrew:

brew list --cask --versions visual-studio-code

2. VS Code Server on SSH hosts, WSL and dev containers

Remote development installs a server build that matches the client's commit. Old server folders stay on disk after you update. List them on each host:

ls ~/.vscode-server/cli/servers/ 2>/dev/null
ls ~/.vscode-server/bin/ 2>/dev/null

The folder names contain commit hashes, not version numbers. Compare them with the commit hash that code --version prints on your patched desktop. Any other hash is an older server.

3. code serve-web instances

The serve-web bug (CVE-2026-120780) matters for anyone running VS Code in a browser from their own machine or server. Find running instances and their listening address:

ps aux | grep -v grep | grep serve-web
sudo ss -ltnp | grep -i code

If it listens on 0.0.0.0 or a public interface, treat it as exposed and patch it first.

How to update VS Code to 1.145.3 or later

The quickest path is the built-in updater: Help > Check for Updates (Windows, Linux) or Code > Check for Updates (macOS), then Restart to Update. On Windows and macOS, VS Code updates itself unless someone set update.mode to none.

VS Code 1.145.3 security update flow from checking the version to updating the desktop app, remote servers and serve-web, then verifying
Update order for VS Code 1.145.3
View PlantUML source
@startuml
skinparam shadowing false
skinparam defaultFontSize 14
start
:code --version;
if (1.145.3 or newer?) then (yes)
  :Check remote servers;
else (no)
  :Update desktop app;
  :Restart VS Code;
  :Check remote servers;
endif
:Reconnect SSH / WSL;
:Delete old server folders;
:Restart serve-web;
:Verify version again;
stop
@enduml

Windows

winget upgrade --id Microsoft.VisualStudioCode -e

If you installed with Chocolatey:

choco upgrade vscode -y

macOS

brew upgrade --cask visual-studio-code

If you installed by dragging the app to Applications, use Code > Check for Updates.

Linux

Microsoft's Linux setup page uses the code package from packages.microsoft.com:

sudo apt update && sudo apt install --only-upgrade code   # Debian / Ubuntu
sudo dnf upgrade --refresh code                           # Fedora / RHEL
sudo zypper update code                                   # openSUSE / SLE
sudo snap refresh code                                    # Snap

The docs note that the Debian repository can lag the latest release by up to three hours. That window has long passed for 1.145.3.

VS Code update commands by platform: built-in updater, winget, Homebrew cask, apt, dnf, zypper and snap, with code --version to confirm
One update command per platform

Remote servers and serve-web

  1. Reconnect each Remote-SSH, WSL or dev container window from the updated desktop. VS Code installs the matching server build.
  2. If a host keeps the old server, run Remote-SSH: Kill VS Code Server on Host… from the Command Palette and reconnect.
  3. Remove server folders whose hash doesn't match your patched client (the list from the check step).
  4. For serve-web, update the code package on that machine, stop the old process and start it again bound to localhost:
code serve-web --host 127.0.0.1 --port 8000

Verify the update

code --version | head -1

You want 1.145.3 or higher. If you manage a fleet, run the same check from your endpoint tool. I wrote about a similar fleet-wide check for another editor family in JetBrains Security Update: Patch IDEs to 2026.2.4 Now.

Can't update yet? Temporary VS Code mitigations

The workarounds below come from the issues and advisories themselves. There is no setting that fixes the bugs. These only shrink the attack surface until you update.

RiskOfficial workaroundSide effect
Debugger auto-attach (CVE-2026-70094)Disable JavaScript auto-attach; don't open untrusted reposNo automatic Node.js debugging in the terminal
Workspace Trust bypassesDon't grant trust until you have reviewed the repoExtensions and tasks stay limited in Restricted Mode
Remote workspace linksDownload .code-workspace files and review them before openingExtra step for shared workspaces
MCP install links, SSE, elicitationInstall and connect only trusted MCP servers; disable legacy SSE servers; don't click links in notifications from unknown serversSome agent tools go offline
serve-webBind to localhost; add authentication at the reverse proxyNo direct LAN access
Agent local commandsKeep terminal approvals on; don't grant session-wide permissions on untrusted reposMore approval prompts
Temporary VS Code mitigations before the 1.145.3 update: turn off auto-attach, keep Workspace Trust prompts, disable legacy SSE MCP servers, and bind serve-web to localhost
Stopgaps until you can update

Turn off JavaScript auto-attach

Open the Command Palette, run Debug: Toggle Auto Attach and pick Disabled. Or add this to your user settings.json:

{
  "debug.javascript.autoAttachFilter": "disabled"
}

Restart any open terminals afterwards. The Node.js debugging docs describe the other modes (smart, always, onlyWithFlag). Switch back once you are on 1.145.3.

Make Workspace Trust stricter

Keep the feature on and ask on first open:

{
  "security.workspace.trust.enabled": true,
  "security.workspace.trust.startupPrompt": "once"
}

Then run Workspaces: Manage Workspace Trust and remove folders you trusted without a real review. Note that one of the fixed bugs treated a missing or non-boolean security.workspace.trust.enabled value as "disabled", so write it explicitly as true.

Find legacy SSE MCP servers

MCP servers are defined in a workspace .vscode/mcp.json and in your user mcp.json. Search both for SSE transports:

grep -n '"sse"' .vscode/mcp.json 2>/dev/null   # workspace
grep -n '"sse"' "$HOME/Library/Application Support/Code/User/mcp.json" \
  "$HOME/.config/Code/User/mcp.json" 2>/dev/null
Select-String -Path "$env:APPDATA\Code\User\mcp.json" -Pattern '"sse"'

Disable or remove servers you don't fully trust until you update. If you still run old reference servers from the MCP project, also read Deprecated MCP Servers: Find and Replace Them After MCPhantom.

Troubleshooting after the update

A remote .code-workspace link now opens in Restricted Mode. That is the fix for CVE-2026-119985. HTTP and HTTPS workspaces now follow normal Workspace Trust rules. Review the file, then choose Trust if it is yours.

Workspace settings stopped applying in an untrusted folder. Several fixes close tricks that let restricted settings slip into untrusted workspaces (flat dotted keys, group key overrides, experiment overrides). If a setting you rely on now gets ignored, trust the folder after review or move the setting to user settings.

An MCP install link fails or asks for more input. Since 1.145.3, VS Code validates install-link inputs and rejects unsupported command-backed variables. Add the server by hand in mcp.json after you check its command and arguments.

A remote host still runs the old server. Run Remote-SSH: Kill VS Code Server on Host…, reconnect, then delete the stale folders under ~/.vscode-server/.

1.146.0 changed agent behavior and you want the 1.145 line. 1.146 deprecates the Local agent harness (removal planned for February 2027) and narrows permission prompts by default. If that breaks your workflow, step back to 1.145.3, never older. The FAQ gives the download pattern:

https://update.code.visualstudio.com/1.145.3/<PLATFORM>/stable

Replace <PLATFORM> with your build (for example linux-deb-x64 or linux-deb-arm64). Then stop auto-update temporarily:

{
  "update.mode": "none"
}

Set it back to default soon. With updates off, you will miss the next security fix. On Debian and Ubuntu, apt-cache madison code lists the versions the repo still offers.

Troubleshooting the VS Code 1.145.3 update: Restricted Mode on remote workspaces, ignored workspace settings, rejected MCP install links, stale remote servers and rolling back to 1.145.3 only
Common issues after updating and what to do

VS Code security update decision table

Your setupActionWhen
1.145.2 or older, you open third-party reposUpdate desktop and remote serversNow
Any old version with MCP servers or agent modeUpdate; audit mcp.jsonNow
serve-web reachable from a networkUpdate, bind to localhost, add authNow
Old build on locked-down machines, own code onlyUpdateThis week
Remote hosts with stale server foldersReconnect, delete old foldersThis week
1.145.3 or 1.146.x everywhereNo actionNot affected
Cursor, Windsurf or other VS Code forksCheck the vendor's own release notesNot covered here

The forks line matters. These fixes went into Microsoft's VS Code repository. Forks ship on their own schedule, and I did not check whether they have merged these patches. I also covered a past fork-specific incident in Claude Code Extension Backdoor: Find and Remove It in Cursor.

FAQ

Is 1.146.0 also patched? Yes. The advisories list affected versions as "before 1.145.3", and 1.146.0 (November 11, 2026) is newer. The 1.146 release notes don't repeat the security list, so the 1.145.3 milestone is the place to read about these fixes.

Do I need to do anything for VS Code for the Web (vscode.dev)? The fixes are in the VS Code desktop app, the VS Code Server and code serve-web. I found no advisory that asks vscode.dev users to act. If you self-host serve-web, update it.

Are any of these bugs being exploited? I found no report of exploitation as of November 15, 2026, and the CVSS vectors I checked list exploit maturity as "Unproven". Each bug still needs only a small user action, so update anyway.

Does Restricted Mode protect me from CVE-2026-70094? Not fully. The issue says auto-attach settings could influence which executable VS Code launched at startup, before Workspace Trust applied. That is why the update matters more than any setting.

Should I uninstall MCP servers? No, but connect only to servers you trust. Remove or disable legacy SSE servers you don't control until you are on 1.145.3 or later.

References

Next, if your team installs MCP servers from links, read Deprecated MCP Servers: Find and Replace Them After MCPhantom to clean up the servers that load into your editor.

Leave a Comment