Cleartext Storage of Sensitive Information Affecting electerm package, versions >=0.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (1st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cleartext Storage of Sensitive Information vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ELECTERM-16599143
  • published9 May 2026
  • disclosed8 May 2026
  • creditosageling

Introduced: 8 May 2026

NewCVE-2026-43942  (opens in a new tab)
CWE-312  (opens in a new tab)

How to fix?

There is no fixed version for electerm.

Overview

electerm is an open-sourced terminal/ssh/telnet/serialport/sftp client

Affected versions of this package are vulnerable to Cleartext Storage of Sensitive Information in the getConstants process, which serializes the entire process.env object and exposes it to the renderer context as window.pre.env. An attacker can access sensitive environment variables and exfiltrate secrets by executing JavaScript within the renderer, such as through a malicious plugin, cross-site scripting, or terminal hyperlink execution. This is only exploitable if an attacker can execute JavaScript in the renderer context or has local access to the application's "Info" modal.

Workaround

This vulnerability can be mitigated by avoiding launching the application with sensitive environment variables set, not installing plugins from untrusted sources, auditing installed plugins for network access, disabling the remote debugging port, and refraining from pasting untrusted code into the DevTools console.

References

CVSS Base Scores

version 4.0
version 3.1