CVE-2026-43940 Details
Description
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.
A path traversal vulnerability has been identified in Electerm versions prior to 3.7.16. The issue arises in the runWidget function, which constructs file paths by directly concatenating user-supplied widget identifiers without proper sanitization. This function is exposed to the renderer process through an asynchronous IPC handler that lacks input validation. An attacker who gains JavaScript execution in the renderer, possibly via a malicious plugin or a cross-site scripting vulnerability in the built-in webview, can exploit this flaw. By manipulating the file path to include traversal sequences, the attacker can load and execute arbitrary JavaScript files from the victim's filesystem. This exploitation leads to local code execution with the same privileges as the Electerm process, potentially resulting in complete system compromise.
Users can upgrade to Electerm version 3.7.16 or later to address this vulnerability. Instructions for downloading the latest version are available on the Electerm GitHub Releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 8, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/electerm/electerm/releases/tag/v3.7.16 | [email protected] | Release Notes |
| https://github.com/electerm/electerm/security/advisories/GHSA-f77v-9vpc-6pjm | [email protected] | MitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
| CWE-829 | Inclusion of Functionality from Untrusted Control Sphere | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| electerm project electerm | < 3.7.16 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 8, 2026 | Initial Analysis | [email protected] |
| May 8, 2026 | New CVE Received | [email protected] |