← All advisories

CVE-2026-136630highCode execution2026-11-25

CVE-2026-136630: Electerm's built-in MCP server widget had no auth and no Host/Origin checks by default, so a web page using DNS rebinding could run commands on the workstation and in open SSH sessions (fixed 5.9.0)

Electerm, an open-source terminal, SSH and SFTP client, has an MCP Server widget that exposes tools for AI assistants over HTTP on 127.0.0.1:30837. In 5.8.1 and earlier its API key defaulted to empty (no authentication) and the server checked neither the Host nor the Origin header, relying only on leaving out CORS headers. A web page that rebinds its domain to 127.0.0.1 becomes same-origin with the server, so while the widget was running, visiting such a page let the page call open_electerm_local_terminal, execute_electerm_command and the SFTP tools: arbitrary OS commands on the user's machine, commands in every open SSH session, and remote file reads. Fixed in 5.9.0.

01.

What it is

Affected code: ElectermMCPServer.start() in src/app/widgets/widget-mcp-server.js (defaults host 127.0.0.1, port 30837, apiKey ''). CWE-306, CWE-346, CWE-350.

Exposed MCP tools include open_electerm_local_terminal, execute_electerm_command, send_electerm_terminal_command, list_electerm_tabs and electerm_sftp_* (read/download).

Precondition: the MCP Server widget is running with no API key and the user visits an attacker-controlled page. The browser sends the JSON POST without a CORS preflight once the domain resolves to loopback.

Reported to the maintainer on 1 November 2026 (advisory published 2 November); fix commit 572551d shipped in Electerm v5.9.0 (7 November 2026). NVD published the CVE (CNA VulnCheck) on 25 November 2026.

02.

How to check

  1. Check your Electerm version (Help > About): 5.8.1 and earlier are affected.
  2. Check whether the MCP Server widget is running and whether its apiKey is empty; see if anything listens on port 30837.
03.

How to fix

  1. Upgrade Electerm to 5.9.0 or later.
  2. Set a random API key on the MCP Server widget and stop the widget when no AI client is using it.
  3. For any local MCP HTTP server, require a token and validate Host and Origin; leaving out CORS headers does not stop DNS rebinding.
# is the Electerm MCP widget listening?
lsof -nP -iTCP:30837 -sTCP:LISTEN 2>/dev/null || ss -ltnp | grep 30837
04.

Sources

Related on VibeVulns
More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.