CVE-2026-41613: Envade
- Vendor
- Microsoft Corporation
CVE-2026-41613 (Envade) is an elevation-of-privilege vulnerability in Visual Studio Code’s one-click Model Context Protocol (MCP) server installer. The installer preview rendered only a subset of accepted configuration fields, allowing a crafted installation link to supply unpreviewed environment variables and HTTP headers. Environment-variable injection could abuse Node.js module preloading through NODE_OPTIONS to execute attacker-controlled JavaScript before an MCP server starts, potentially resulting in operating-system command execution. Hidden HTTP headers could also establish an MCP server session using attacker-controlled credentials, causing subsequent AI-assistant actions to occur in the attacker’s session. Microsoft categorizes the issue as session fixation and also maps it to OS command injection.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can give an attacker the permissions of the affected MCP server’s managed identity, enabling access to and actions against resources that identity is authorized to reach. The command-execution path can enable arbitrary JavaScript execution and operating-system command execution in the developer environment, including deployment of persistence or remote access tooling. Malicious MCP configuration may persist and execute when the MCP server starts, including after Visual Studio Code restarts or system reboots. Exploitation does not grant broader tenant-level or administrator permissions beyond those assigned to the managed identity.
Mitigation
If you can’t patch tonight, do this now.
Until patched, do not open untrusted Visual Studio Code files or approve MCP installations initiated through untrusted deep links. Review all MCP server installation settings, particularly environment configuration and outbound HTTP headers, before approval; remove untrusted or unexpected MCP server configurations from workspaces. Restrict MCP server managed-identity permissions to the minimum required resources and actions.
Remediation
Patch, then assume compromise.
Apply Microsoft’s security update for Visual Studio Code addressing CVE-2026-41613. The fix renders environment variables, environment-file paths, and HTTP headers in the MCP installation preview so users can inspect these security-relevant settings before approving installation.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-41613 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-41613 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-41613?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-41613.
- Is there a patch for CVE-2026-41613?
- Apply Microsoft’s security update for Visual Studio Code addressing CVE-2026-41613. The fix renders environment variables, environment-file paths, and HTTP headers in the MCP installation preview so users can inspect these security-relevant settings before approving installation.
- What products are affected by CVE-2026-41613?
- Microsoft Corporation Visual Studio Code.
- How severe is CVE-2026-41613?
- CVE-2026-41613 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 0.80% (53rd percentile) as of Sep 25, 2026.
Recent activity
12 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.