VS Code fixes remote code execution vulnerability caused by unvalidated MCP SSE endpoint
Remote Code Execution via Unvalidated MCP SSE Endpoints
Microsoft released a security advisory stating that in VS Code versions before 1.145.3, the legacy SSE transport used by the MCP client has a vulnerability that can be used for remote code execution (CVE-2026-119983). A malicious or compromised remote MCP server can provide a new transport endpoint, and VS Code uses that endpoint without adequately validating its origin and protocol, causing subsequent requests to be directed to unintended destinations, potentially leaking credentials or further executing code. Exploitation requires first having the user connect VS Code to a malicious MCP server. The fix starts with VS Code 1.145.3 and is implemented by validating the SSE endpoint provided by the server before establishing the subsequent transport; the patch commit is 1ea9a4c1a39be2bd7e090751281d5e720ec5d239. Before installing the update, the advisory recommends connecting only to trusted MCP servers and disabling or removing affected legacy SSE servers.