GHSA-f77v-9vpc-6pjm · Severity: critical · Ecosystem: npm — Electerm 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.
Conclusion & alert: CVE-2026-43940 is rated Low Risk (35.5/100): CVSS High severity, with low exploitation likelihood (EPSS 0.02%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-05-08 | — | 0.02% | — |
Full EPSS history (1 record total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.4 | 3.1 | HIGH |
|
2.5 | 5.9 | [email protected] |
GHSA-f77v-9vpc-6pjm · Severity: critical · Ecosystem: npm — Electerm runWidget has a path traversal that leads to arbitrary code execution
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| electerm_project | electerm | < 3.7.16 | cpe:2.3:a:electerm_project:electerm:*:*:*:*:*:*:*:* |
| URL | Tags |
|---|---|
| https://github.com/electerm/electerm/releases/tag/v3.7.16 | Release Notes |
| https://github.com/electerm/electerm/security/advisories/GHSA-f77v-9vpc-6pjm | Vendor Advisory Mitigation |