# CVE-2026-43942: electerm: Full process.env exposed to renderer via window.pre.env in electerm

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.10%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-05-08T03:03:54.752Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-37j4-88rp-2f6h
- Weaknesses: CWE-200, CWE-312
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- electerm electerm: <= 3.8.15
- electerm (npm): up to 3.8.15
- electerm_project electerm: up to 3.8.15

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/electerm/electerm/security/advisories/GHSA-37j4-88rp-2f6h> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-43942> (advisory)
- <https://github.com/electerm/electerm> (package)

## Sources

- CVE List: [CVE-2026-43942](https://www.cve.org/CVERecord?id=CVE-2026-43942), CVE Terms of Use, modified 2026-05-08
- GitHub Advisory Database: [GHSA-37j4-88rp-2f6h](https://github.com/advisories/GHSA-37j4-88rp-2f6h), CC-BY-4.0, modified 2026-05-08
- NVD: [CVE-2026-43942](https://nvd.nist.gov/vuln/detail/CVE-2026-43942), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-43942 · Whole record: https://cve.day/CVE-2026-43942.json · Rebuilt by cve.day 2026-11-25T22:59:20.954Z
