Vulnerability library
Security checkMay 08, 2026

Electerm's full process.env exposed to renderer via window.pre.env

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmelecterm

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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

Recommendation

No fix is available yet. Followings are affected versions:

  • <= 3.8.15

References

Could your website be exposed too?

SmartScanner can check your website for Electerm's full process.env exposed to renderer via window.pre.env and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated May 08, 2026