CyberIntel ⬡ News
★ Saved ◆ Cyber Reads
← Back ◇ Industry News & Leadership May 26, 2026

Microsoft Code Editor Flaw Lets Attackers Hijack Developer PCs

Data Breach Today Archived May 26, 2026 ✓ Full text saved

Hidden Install Settings Let Malicious MCP Links Execute Code Microsoft patched a high-severity flaw in Visual Studio Code after researchers found attackers could hide malicious settings inside MCP server install links, giving them persistent access to developer machines through what appeared to be routine artificial intelligence tool installations.

Full text archived locally
✦ AI Summary · Claude Sonnet


    Artificial Intelligence & Machine Learning , Next-Generation Technologies & Secure Development Microsoft Code Editor Flaw Lets Attackers Hijack Developer PCs Hidden Install Settings Let Malicious MCP Links Execute Code Rashmi Ramesh (rashmiramesh_) • May 26, 2026     Credit Eligible Get Permission Image: Visual Studio Code/Shutterstock Developers using Microsoft's code editor could hand an attacker full control of their machine by clicking a single install link, with nothing in the confirmation screen to warn them. Microsoft has since patched the flaw. See Also: Know Thy Enemy: Threats to Cyber Resilience The vulnerability in Visual Studio Code is tracked as CVE-2026-41613. The flaw existed in VS Code's one-click installer for model context protocol servers, a plug-in that connect AI coding assistants to external services like GitHub, databases and file systems. Every major code editor virtually supports MCP and one-click installation. Hackers could exploit the vulnerability by embedding hidden commands, Oasis Security found. Any time a developer adds a MCP installer, a dialog box previews data such as the server's name, type, commands and arguments in five visible fields. Unfortunately for users, the underlying structure supported 10 fields, allowing hackers to maliciously fill up the remaining hidden fields. "The dialog showed the user five fields. It silently installed five more, including environment variables and HTTP headers," the Oasis team said. "The attacker's payload never appeared anywhere in the UI." Microsoft's fix renders environment variables, environment file paths and headers in the install preview. Oasis Security said it reported both findings to Microsoft through the company's security researcher portal before publication. Elad Luz, head of research at Oasis, told ISMG that execution path that made the flaw dangerous came down to a combination of two features working together. "What specifically surprised me is that most execution paths through NODE_OPTIONS are intentionally blocked, but the --import path was not," Luz said. "And on top of that, --import accepts data: URLs containing inline JavaScript. Either piece on its own is interesting; together they form the execution primitive." NODE_OPTIONS is a built-in Node.js feature that lets developers pass configuration flags to the runtime through an environment variable rather than the command line. Node.js is the runtime environment used by the vast majority of MCP servers. One of those flags, --import, preloads a JavaScript module before the program's main code runs. Since the feature also accepts inline JavaScript encoded directly in the URL, an attacker who can set NODE_OPTIONS for a Node process can execute arbitrary JavaScript before the program does anything else. That JavaScript can, in turn, run any shell command the operating system permits, including dropping a persistent backdoor or opening a remote connection to an attacker's machine. The attack only required a developer to click a link and press install on what looks like a normal confirmation. The compromised configuration is in the workspace's settings file and would re-execute every time the server starts, surviving reboots and editor restarts without further action from the attacker. Oasis in the same report detailed a second attack path that did not require code execution at all. HTTP-type MCP servers supported a headers field used to attach authentication credentials to outgoing requests that was also missing from the install preview. An attacker could have embedded their own login credentials in the install link. Since the MCP server would find valid credentials already present, it connected immediately and operated as the attacker's account rather than the developer's. Every action the developer's AI assistant took, such as reading files, sending messages and querying data, would occur in the attacker's session. Luz characterized that both findings are a failure at the interface level. "I'd call this a UI trust-boundary failure," he said. "When an application accepts URI input that will be used to execute programs, or whose parameters carry authentication material, the consent surface needs to be fully transparent about what's in the payload." The findings comes at a time when security researchers have been cataloging a growing number of MCP risks. In April 2026, Ox Security disclosed what it described as a systemic command injection flaw present across Anthropic's official MCP software development kits in Python, TypeScript, Java and Rust, affecting more than 7,000 publicly accessible servers and software packages totaling more than 150 million downloads. Anthropic said the behavior was intentional and declined to modify the protocol's architecture, leaving individual developers and vendors to patch their own implementations. The Cloud Security Alliance's AI Safety Initiative described MCP as having "emerged as one of the most rapidly weaponized attack surfaces in agentic AI deployments." Luz advised taking a comprehensive approach to his company's findings. "Organizations should route MCP deployment through gateways with proper access management - vetted servers, managed credentials and policy applied at the point an agent actually invokes a tool," he said. "That removes the configuration-injection attack surface from the equation rather than trying to detect it after the fact." Luz added that install links themselves are a threat vector that haven't received adequate scrutiny. "They tend to be less documented and less maintained than the web origins and OS-level entry points security teams already monitor - and they're exactly what lets an attacker reach primitives like the one we exploited here."
    💬 Team Notes
    Article Info
    Source
    Data Breach Today
    Category
    ◇ Industry News & Leadership
    Published
    May 26, 2026
    Archived
    May 26, 2026
    Full Text
    ✓ Saved locally
    Open Original ↗