Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure victim to attacker web page
-
DeliveryDNS rebind domain to 127.0.0.1:30837
-
ExploitBrowser sends same-origin POST /mcp
-
ExecutionBypass missing Host/Origin checks
-
PersistInvoke unauthenticated MCP tools
-
ImpactExecute OS commands and SSH/SFTP actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Origin validation
|
| Exploitation Conditions | Requires that the victim has Electerm's built-in MCP Server widget actively running with its default configuration (bind 127.0.0.1, port 30837, apiKey empty so authentication is skipped) - this is the exact precondition and is NOT the default state of Electerm unless the user has enabled that widget. The attacker must also control a domain and perform DNS rebinding to 127.0.0.1, and the victim must be lured into visiting the attacker's page in a local browser (UI:P). Limiting factors: if the user sets a non-empty apiKey, the server enforces Bearer authentication and the attack fails; if the MCP widget is not running, there is no listener; and the AC:H/AT:P rebind timing adds real exploitation friction. Having an open SSH/SFTP session is required only to extend impact to remote hosts, not for local command execution. |
| Impact | This is a genuine, prioritize-this-week issue rather than a paper-high CVSS, but its real-world blast radius is gated by configuration. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:P) and 7.7 base score describe a network-reachable, unauthenticated flaw that nonetheless carries real friction: AC:H and AT:P reflect that the attacker must stand up DNS-rebinding infrastructure and win the rebind timing, and UI:P requires the victim to browse to an attacker-controlled page. PR:N is accurate because the MCP server ships with authentication disabled by default (apiKey:''), so no credentials are needed once the widget is running. Impact is severe and well-supported by source evidence: VC:H/VI:H/VA:H maps to full local OS command execution plus command/file access across already-open SSH sessions. No EPSS score and no CISA KEV entry were supplied, and the vuln.today Decision label is 'this_week' (not act_now/emergency) - consistent with a credible, vendor-confirmed bug that is not yet mass-exploited. The main caveat: exploitation is conditional on the user having the MCP Server widget actively running with the default empty apiKey, which narrows the exposed population well below Electerm's total install base. The finding was reported by VulnCheck and confirmed by the maintainer, and a fix exists, so the signals are consistent (serious impact, moderate exploitation friction, no confirmed in-the-wild use) and point to prompt patching rather than drop-everything emergency response. |
| Exploit ScenarioDerived | A victim running Electerm with the built-in MCP Server widget enabled on its default 127.0.0.1:30837 with no apiKey visits an attacker-controlled web page. That page uses DNS rebinding to re-resolve its own domain to 127.0.0.1, so the browser treats POST http://<rebound-domain>:30837/mcp as same-origin and the missing Host/Origin validation lets the page's JavaScript invoke unauthenticated MCP tools (open_electerm_local_terminal, execute_electerm_command) to run OS commands locally and across open SSH sessions, and read remote files via SFTP. The GHSA advisory includes a verification snippet proving the missing header validation, but it is a test double demonstrating the gap, not a packaged working browser exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 25, 2026
Electerm through 5.8.1 ships a built-in MCP Server widget that binds an Express HTTP listener to 127.0.0.1:30837 and, by default, runs with an empty API key, so unauthenticated JSON-RPC requests to POST /mcp are accepted; because the server validates neither the Host nor the Origin header, a malicious page that DNS-rebinds its own domain to 127.0.0.1 is treated as same-origin by the browser and can invoke tools such as open_electerm_local_terminal and execute_electerm_command to run OS commands on the workstation and across any open SSH sessions, and read or download remote files over SFTP. The precondition is specific: the victim must have the MCP Server widget actively running in its default configuration, must be lured into visiting the attacker's page (UI:R), and the rebind timing adds real exploitation friction (AC:H/AT:P). No public exploit code was identified at time of analysis and the issue is not in CISA KEV, but the vendor has released a fix in 5.9.0 and the priority label places remediation in this week's work.
RemediationAI
Vendor-released patch: Electerm 5.9.0 (https://github.com/electerm/electerm/releases/tag/v5.9.0, fixing commit 572551df2be4bdd7964fa0f9102b42f49bc8de7b); upgrading is the complete fix, since the vendor's changes close the origin-validation gap itself rather than relying on configuration. The 5.9.0 code builds an allowlist of acceptable Host header values from the configured bind address (adding 127.0.0.1, localhost, ::1 and [::1] spellings when bound to loopback), returns 403 for any Host outside that set and for any request carrying an Origin header at all, runs both checks before the body parser, generates a non-empty random API key ('ett_' plus 16 random bytes) whenever the configuration would otherwise start with authentication off, and compares the key with crypto.timingSafeEqual while also accepting it as ?apiKey= in the URL. Side effects of upgrading: the server URL now carries a generated key that must be re-pasted into local MCP clients, and any browser-originated request to the listener is refused with 403. If immediate upgrade is not possible, the evidence-backed interim mitigations are to stop the MCP Server widget when it is not in use so that no listener exists on port 30837, or to set a non-empty apiKey in the widget configuration, which makes the pre-5.9.0 server enforce the Bearer Authorization header and causes the rebinding attack to fail; note that if the bind address is changed to a wildcard such as 0.0.0.0 or ::, the Host check cannot constrain anything and the API key becomes the only boundary, so keeping the default loopback bind matters.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Electerm is an Electron terminal/SSH/SFTP client. Its MCP Server widget (src/app/widgets/widget-mcp-server.js) launches a local Express server implementing the MCP Streamable HTTP transport, with defaults host 127.0.0.1, port 30837 and apiKey '' (authentication skipped). The root cause is CWE-346 (origin validation error), compounded by CWE-306 (missing authentication for a critical function) and CWE-350 (reliance on reverse DNS) as tagged in the GitHub advisory: the middleware assumed that omitting the Access-Control-Allow-Origin response header blocks browser-originated requests, but CORS is never consulted once the browser considers the request same-origin. It performs no check of req.headers.host against 127.0.0.1/localhost/[::1] and never rejects a request that carries an Origin header. DNS rebinding defeats the loopback assumption: the page resolves its own hostname to 127.0.0.1, the browser sends Host and Origin for the attacker's domain, Content-Type: application/json keeps the POST out of preflight territory, and StreamableHTTPServerTransport.handleRequest dispatches tools/call without requiring a prior initialize handshake - so a single POST can chain open_electerm_local_terminal and execute_electerm_command and read back stdout. Exposed tools also include send_electerm_terminal_command, list_electerm_tabs and the electerm_sftp_* family. CPE cpe:2.3:a:electerm:electerm:*:*:*:*:*:*:*:* records the affected product without a version bound; the advisory range is <= 5.8.1, fixed in 5.9.0.
Know when Electerm gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Browser-reachable but needs DNS-rebinding setup (AC:H) and a victim visiting the page (UI:R); no auth because the server defaults to apiKey-empty (PR:N); full local/SSH RCE gives C/I/A:H.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Electerm before 5.9.0 contains an origin validation vulnerability in the MCP Server widget that allows remote attackers to execute commands by bypassing Host and Origin checks through DNS rebinding. Attackers can lure users to a page that rebinds to 127.0.0.1 and calls unauthenticated MCP tools on port 30837 to run OS commands locally and on open SSH sessions.
Technical POC Analysis
CWE-346 (Origin Validation Error) in Electerm's built-in MCP Server widget, src/app/widgets/widget-mcp-server.js.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Electerm, a terminal and SSH client used by technical staff, ships an MCP Server component that by default exposes a local HTTP interface with no authentication, allowing a malicious website to potentially execute operating system commands on developer and administrator workstations and pivot into any open remote sessions. The exposure is limited to users who have the widget actively running and who are lured to a hostile page, but the consequence of successful abuse - command execution on privileged engineering endpoints and access to remote file systems - represents meaningful organizational risk. Leadership should care because compromise of these endpoints could yield credentials and access to production infrastructure, and remediation is readily available.
Vendor-released patch: 5.9.0
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Arbitrary local code execution in electerm (versions 3.0.6-3.8.14) allows remote attackers to execute malicious code on
Command injection in electerm's npm install script allows arbitrary command execution on macOS systems during 'npm insta
Arbitrary code execution in Electerm terminal client (≤3.8.15) allows attackers who control terminal output to execute c
Unintended internal method dispatch in electerm prior to v3.15.186 allows any authenticated WebSocket client to invoke a
Command injection in electerm prior to version 3.15.120 enables a malicious FTP or SFTP server operator to execute arbit
OS command injection in Electerm on Windows up to and including 5.8.0 lets a file or folder name carrying a typographic
Path traversal in electerm's IPC widget loader allows local code execution with full process privileges when an attacker
Path traversal in electerm's RDP clipboard file transfer (prior to v3.15.120) lets a malicious RDP server write attacker
Path traversal in electerm's recursive file transfer component allows a malicious FTP or SFTP server to write attacker-c
Path traversal in electerm's SFTP client allows a malicious or man-in-the-middle SFTP server to write attacker-controlle
Command injection in electerm's SFTP file editor feature allows arbitrary code execution when users edit files with mali
Arbitrary OS command execution in electerm before 5.3.15 is achievable through a completely unvalidated Electron IPC bri
EUVD-2026-134871
GHSA-44wm-wffw-6fq9
NVD
CVE.org
EPSS
Exploit-DB