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.
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.
How to check
- Check your Electerm version (Help > About): 5.8.1 and earlier are affected.
- Check whether the MCP Server widget is running and whether its apiKey is empty; see if anything listens on port 30837.
How to fix
- Upgrade Electerm to 5.9.0 or later.
- Set a random API key on the MCP Server widget and stop the widget when no AI client is using it.
- 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 Sources
- GitHub advisory GHSA-45rj-2wq9-r9mr: Missing Host and Origin header validation in built-in MCP HTTP server enables browser-based RCE via DNS rebinding ↗
- NVD: CVE-2026-136630 ↗
- electerm fix commit 572551d ↗
- Electerm v5.9.0 release ↗
- VulnCheck advisory: Electerm before 5.9.0 RCE via DNS rebinding in MCP server widget ↗
- criticalCVE-2026-115555 and 28 more: IBM's Langflow bulletin fixes 29 flaws up to 1.13.0, including 9.9 code execution, MCP tool calls that run custom code without admin rights and an unauthenticated public-flow RCE, upgrade to 1.13.1
- criticalCVE-2026-76092 and CVE-2026-76099: Docker MCP Gateway served its MCP endpoints with no auth in container mode, and its dynamic tools could mount the Docker socket for root on the host (fixed 0.43.1)
- criticalCVE-2026-142487: Joinly's meeting-agent MCP server let any network client import and run subprocess.Popen through the joinly-settings header (fixed 0.5.4)
- criticalCVE-2026-76812 and more: CKAN MCP Server's unauthenticated HTTP mode let anyone bounce sparql_query to the cloud metadata service and read IAM credentials, plus a string of SSRF, injection and DoS fixes (upgrade to 0.4.147)