Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-43940

HIGH 8.4EPSS 8%

electerm: Path traversal in electerm runWidget leads to arbitrary code execution

Also known as GHSA-f77v-9vpc-6pjm

Mitigation

  • Upgrade electerm to 3.7.16 or later.

Who should check

  • Projects that depend on npm package electerm (< 3.7.16)
  • Anyone running electerm < 3.7.16

Vulnerability facts

Affected
electerm < 3.7.16
Fixed in
3.7.16
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
8.4 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.22% chance of exploitation in 30 days (percentile 8, 2026-11-26)
CWE
CWE-22, CWE-829
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
npm electerm< 3.7.163.7.16osv
electerm< 3.7.16—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-43940. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-43940.md
Affected: electerm < 3.7.16
Fixed in: 3.7.16

Steps:
1. Search this machine and project for electerm (npm), electerm: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-43940 being exploited?

There is no confirmed exploitation: CVE-2026-43940 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-43940?

High: CVSS 8.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-43940?

electerm < 3.7.16.

Is there a fix for CVE-2026-43940?

Yes. Fixed in 3.7.16. Upgrade electerm to 3.7.16 or later.

How do I check if I'm affected by CVE-2026-43940?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors