{"cve":"CVE-2026-43940","nvd":{"published":"2026-05-08T04:16:23.023","modified":"2026-06-17T10:50:05.923","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4},"cwes":["CWE-22","CWE-829"],"references":["https://github.com/electerm/electerm/releases/tag/v3.7.16","https://github.com/electerm/electerm/security/advisories/GHSA-f77v-9vpc-6pjm"],"products":["electerm_project:electerm"],"source":"nvd","synced_at":"2026-10-19T22:33:55.586217763+00:00"},"epss":{"cve":"CVE-2026-43940","score":0.00167,"percentile":0.05923,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f77v-9vpc-6pjm","url":"https://osv.dev/vulnerability/GHSA-f77v-9vpc-6pjm","summary":"Electerm runWidget has a path traversal that leads to arbitrary code execution","modified":"2026-05-08T18:56:26.083197Z","packages":[{"ecosystem":"npm","name":"electerm","purl":"pkg:npm/electerm","ranges":["<3.7.16"],"fixed":["3.7.16"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}