CVE-2026-43940
HIGH 8.4CVSS 3.1Electerm runWidget has a path traversal that leads to arbitrary code execution
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.
- Published
- 8 May 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22CWE-829
- Also known as
- GHSA-f77v-9vpc-6pjm
- Sources
- NVDJSONOSV GHSA-f77v-9vpc-6pjmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.4 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | electerm_project | electermcpe:2.3:a:electerm_project:electerm:*:*:*:*:*:*:*:* |
< 3.7.16 | 3.7.16 |
| OSV | npm | electerm | < 3.7.16 | 3.7.16 |
References
- https://github.com/electerm/electerm/releases/tag/v3.7.16 · Release Notes, WEB
- https://github.com/electerm/electerm/security/advisories/GHSA-f77v-9vpc-6pjm · Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-43940 · ADVISORY
- https://github.com/electerm/electerm · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 8 May 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 May 2026)