electerm

CVE-2026-43942

CVE-2026-43942 is a medium-severity security vulnerability in electerm (npm), affecting versions <= 3.8.15. No fixed version is listed yet.

Key facts
CVSS score
6.5
Medium
Attack vector
Network
Issuing authority
GitHub Advisory Database
Affected package
electerm
Fixed in
Not available
Disclosed
2026

Summary

Impact 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). On developer and CI machines, process.env routinely contains secrets such as: AWSSECRETACCESSKEY / AWSSESSIONTOKEN GITHUBTOKEN / NPMTOKEN OPENAIAPIKEY / DOCKERAUTH Internal service credentials, API keys, and database URLs An attacker who achieves any JavaScript execution within the renderer, for example, through a malicious plugin, a cross-site scripting (XSS) flaw, or the terminal hyperlink execution chain, can trivially exfiltrate these secrets to a remote server, leading to cloud account compromise, supply chain attacks, and lateral movement. The exposure is visible even without any code execution by simply opening the "Info" modal in the application, though that requires local access. Patches A patch is yet to be available. Workarounds Until a patch is released: Avoid launching electerm with sensitive environment variables set. Use shell scripts or a dedicated terminal profile that clears secrets before starting the application. Do not install plugins from untrusted sources, and audit any installed plugins for network access. Keep the renderer context as locked down as possible: disable the remote debugging port, and do not paste untrusted code into the DevTools console. Resources electerm GitHub Repository electerm Security Policy Vulnerability details originally reported by external researcher (confirmed on v3.7.9, Win10).

Impact

Severity and exposure

CVE-2026-43942 has a CVSS score of 6.5 (Medium). The vector is network-reachable, low privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment.

No fixed version is listed yet, so configuration controls and monitoring matter more in the interim.

Affected versions

npm

  • electerm (<= 3.8.15)

Security releases

Not available
Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter instead of chasing every advisory.

Kodem's runtime-powered SCA identifies whether CVE-2026-43942 is reachable in your applications. Explore open-source security for your team.

See if CVE-2026-43942 is reachable in your applications. Get a demo

Already deployed Kodem? See CVE-2026-43942 in your environment

Remediation advice

No fixed version is listed for CVE-2026-43942 yet.

Kodem Kai can prioritize this vulnerability in your dependency tree and generate a fix recommendation.

Frequently asked questions about CVE-2026-43942

What is CVE-2026-43942?

CVE-2026-43942 is a medium-severity security vulnerability in electerm (npm), affecting versions <= 3.8.15. No fixed version is listed yet.

How severe is CVE-2026-43942?

CVE-2026-43942 has a CVSS score of 6.5 (Medium). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.

Which versions of electerm are affected by CVE-2026-43942?

electerm (npm) versions <= 3.8.15 is affected.

Is there a fix for CVE-2026-43942?

No fixed version is listed for CVE-2026-43942 yet. Monitor the advisory for updates and apply mitigations in the interim.

Is CVE-2026-43942 exploitable, and should I be worried?

Whether CVE-2026-43942 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo

What actually determines whether CVE-2026-43942 is exploitable, and how bad it is?

Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.

Stop the waste.
Protect your environment with Kodem.