Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconDeliver malicious plugin/content
-
DeliveryLoad into electerm renderer
-
ExploitExecute JavaScript in sandbox
-
InstallInvoke IPC handler with traversal path
-
C2Main process loads arbitrary file
-
ExecuteExecute code with full privileges
-
ImpactExfiltrate credentials or persist
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the attacker to first achieve arbitrary JavaScript execution within electerm's Electron renderer process. This prerequisite is met when: (1) the user installs and activates a malicious or compromised electerm plugin/widget, (2) electerm's built-in webview renders untrusted content containing XSS payloads that execute in the application context, or (3) the user loads a terminal session or connection profile crafted to inject JavaScript into the renderer. Once renderer-level code execution is achieved, the path traversal exploitation requires no additional user interaction or authentication. The vulnerability does NOT allow remote unauthenticated exploitation against default electerm installations - the local attack vector (AV:L) reflects the requirement for prior renderer compromise, not traditional local system access. Limiting factors: exploitation requires the user to interact with untrusted content or plugins; organizations that restrict electerm to trusted terminal sessions only face significantly reduced risk. |
| Impact | CVSS 8.4 (High) indicates critical impact but requires a precondition that significantly constrains real-world exploitability. The AV:L (local attack vector) rating is somewhat misleading - this is not traditional local access but rather requires the attacker to first achieve JavaScript execution within electerm's renderer process, typically through a malicious plugin, compromised extension, or XSS in the application's webview component. The PR:N rating reflects no authentication once renderer execution is achieved, but obtaining that initial foothold is the critical barrier. AC:L and UI:N are accurate post-compromise. No EPSS score available and absent from CISA KEV, suggesting this is not being actively exploited in the wild. The attack requires two stages: (1) compromise renderer process, (2) exploit path traversal for privilege escalation. This is a serious vulnerability for environments where untrusted plugins or content are loaded into electerm, but not an immediate mass-exploitation risk. Organizations using electerm with third-party plugins or processing untrusted terminal content should prioritize patching; those running only trusted configurations face lower immediate risk. |
| Exploit ScenarioDerived | An administrator installs a malicious electerm plugin from an untrusted source or opens a terminal session that triggers an XSS vulnerability in electerm's webview component. The attacker's JavaScript code in the renderer process invokes the exposed IPC handler with a crafted widget identifier containing path traversal sequences (e.g., '../../../Users/victim/.ssh/malicious.js'). The vulnerable runWidget function concatenates this unsanitized input into a filesystem path and executes the attacker-controlled JavaScript file with full main process privileges, granting complete access to the victim's files, credentials, and system. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Path traversal in electerm's IPC widget loader allows local code execution with full process privileges when an attacker achieves JavaScript execution in the renderer process. Affects all versions prior to 3.7.16. The vulnerability enables filesystem-wide arbitrary JavaScript file loading and execution through unsanitized path concatenation in runWidget function, bypassing Electron's process isolation. Vendor-released patch available in version 3.7.16. EPSS data not available; no confirmed active exploitation (not in CISA KEV).
RemediationAI
Upgrade to electerm version 3.7.16 immediately, available at https://github.com/electerm/electerm/releases/tag/v3.7.16. The patch implements input validation and sanitization in the runWidget IPC handler to prevent directory traversal sequences. If immediate upgrade is not feasible, implement strict compensating controls: disable all third-party widget and plugin loading functionality if the application exposes such features; restrict electerm to processing only trusted terminal sessions without embedded webviews or user-supplied content; run electerm under a restricted user account with minimal filesystem permissions to limit post-exploitation impact (note: this reduces but does not eliminate risk as the attacker still inherits the restricted user's privileges). Review application logs for suspicious widget loading attempts (look for paths containing ../ sequences). These mitigations carry operational trade-offs - disabling plugins may break legitimate workflows, and restricted accounts may limit integration with system tools.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
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-based terminal emulator supporting multiple protocols (SSH, SFTP, Telnet, RDP, VNC, Spice). The vulnerability exists in the main-to-renderer IPC (Inter-Process Communication) bridge architecture inherent to Electron applications. The runWidget function in src/app/widgets/load-widget.js accepts widget identifiers from the renderer process via an async IPC handler and directly concatenates them into filesystem paths without validation. This is a classic CWE-22 path traversal vulnerability where directory traversal sequences (../) can escape the intended widget directory. Because Electron's main process runs with full Node.js privileges while the renderer is sandboxed, exposing filesystem operations to renderer-controlled input creates a privilege escalation vector. The flaw breaks the security boundary between sandboxed renderer code and privileged main process operations.
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
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to version 3.7.16, the runWidget function in src/app/widgets/load-widget.js constructs a file path by directly concatenating user‑supplied widget identifiers without any sanitisation. Because runWidget is exposed to the renderer process via an asynchronous IPC handler with no input validation, an attacker who achieves JavaScript execution inside the renderer (for example, through a malicious plugin or a cross‑site scripting flaw in the built‑in webview) can abuse a path traversal (../) to load and execute an arbitrary JavaScript file anywhere on the victim’s filesystem. This gives the attacker local code execution with the full privileges of the electerm process, leading to complete system compromise. This issue has been patched in version 3.7.16.
Executive ViewAI
CVE-2026-43940 is a high-severity path traversal vulnerability in electerm versions prior to 3.7.16 that allows local attackers with renderer process access to execute arbitrary JavaScript with full process privileges, effectively bypassing Electron's security isolation. Organizations using electerm should prioritize upgrading to 3.7.16 immediately, as this vulnerability could enable complete application compromise and lateral movement within affected systems.
Vendor-released patch: electerm 3.7.16. Apply immediately. If immediate patching is not feasible, implement strict network segmentation to limit renderer process exposure, disable untrusted JavaScript execution contexts within electerm, and monitor for filesystem access anomalies using endpoint detection and response (EDR) tools. However, these mitigations are incomplete and patching remains the primary remediation path.
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
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in electerm Remote Code Execution
View all 5Unintended 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 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
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
Arbitrary OS command execution in electerm before 5.3.15 is achievable through a completely unvalidated Electron IPC bri
EUVD-2026-28512
GHSA-f77v-9vpc-6pjm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB