CVE-2026-43942 electerm: Full process.env exposed to renderer via window.pre.env in electerm
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
Description
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| electerm project electerm | <= 3.8.15 | after 3.8.15 | Fixed |
| npm electerm(npm) | <= 3.8.15 | after 3.8.15 | Fixed |
| electerm | = <= 3.8.15 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| electerm | = <= 3.8.15 | No fix listed |
| npm electerm(npm) | <= 3.8.15 | No fix listed |
| electerm project electerm | <= 3.8.15 | No fix listed |
References
- https://github.com/electerm/electerm/security/advisories/GHSA-37j4-88rp-2f6h mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product