CVE-2026-43942CWE-200CWE-312

electerm: Full process.env exposed to renderer via window.pre.env in electerm

Medium · published May 8, 2026

CVSS v3.1
5.5
EPSS
0%
Percentile
1.3
In the wild
Unconfirmed
What it is

electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. In versions 3.8.15 and prior, the getConstants() IPC handler in src/app/lib/ipc-sync.js serialises the entire process.env object and sends it to the renderer. The data is stored as window.pre.env and is accessible from any JavaScript running in the renderer (e.g., via the DevTools console or a compromised webview context). An attacker who achieves any JavaScript execution within the renderer can trivially exfiltrate these secrets to a remote server, leading to cloud account compromise, supply chain attacks, and lateral movement. At time of publication, there are no publicly available patches.

The record
Technical detail
CVSS v3.1
5.5 · MEDIUM
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00111 · 1.3th percentile
Weaknesses
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor; CWE-312 · Cleartext Storage of Sensitive Information
Published
2026-05-08T03:03Z
EPSS history
Timeline
  • 08 MAY 03:03Z
    electerm: Full process.env exposed to renderer via window.pre.env in electerm
    cvelistv5