VS Code fixes RCE vulnerability caused by unvalidated MCP SSE endpoint
Start here
Microsoft issued a security advisory stating that in versions of VS Code before 1.145.3, the legacy SSE transport used by the MCP client has a vulnerability (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 an unintended destination, potentially leaking credentials or further executing code. Exploitation requires first getting the user to connect VS Code to a malicious MCP server. The fix starts from 1.145.3, validating the SSE endpoint provided by the server before establishing subsequent transport; the patch commit is 1ea9a4c1a39be2bd7e090751281d5e720ec5d239. The advisory recommends connecting only to trusted MCP servers before installing the update, and disabling or removing affected legacy SSE servers.
Generated by AI from reports · Updated 18 days ago
Progress timeline
- microsoft/vscodeVS Code fixes remote code execution vulnerability caused by unvalidated MCP SSE endpoint
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.
Related discussion
- Older than 72 hours · Not included in the 72-hour figures
- X@okady_hackerVS Code 1.145.3 was released. There are 17 security fixes. - A problem where code runs from links for installing malicious MCPs or from SSE connection destinations - A problem where code is executed by local commands issued by the agent - Of the 17, 4 are related to MCP and the a…(opens the original post in a new tab)