/

CVE-2026-45745

Severity:

HIGH RISK

(8.0)

Improper TLS Certificate Validation (CWE-295) in Termix Desktop Electron Client

CVE-2026-45745

Analyzed

Vulnerability type

Category:

Improper Certificate Validation

CWE:

CWE-295

Impact:

Credential and Session Compromise via Man-in-the-Middle

Severity:

HIGH RISK

(8.0)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Termix Desktop (Electron) disables TLS certificate validation when connecting to the Termix server, breaking the fundamental authenticity guarantees of HTTPS.

On networks where an attacker can perform a machine-in-the-middle attack, this flaw can allow interception and modification of traffic, leading to credential and session token theft during login and normal use.

Affected context

This vulnerability affects Termix Desktop clients starting with version 1.7.0 that communicate with a Termix server over HTTPS.

It is most relevant in environments where network traffic can be monitored, proxied, or modified (e.g., shared Wi-Fi, corporate proxies, or compromised local networks).

The issue arises in the TLS/HTTPS client logic within the Electron application, where certificate validation is effectively disabled, causing the client to trust any presented certificate.

Exploit preconditions

  • Attack surface: Network traffic between the Termix Desktop client and the Termix server.
  • Required access: Ability to perform machine-in-the-middle (MitM) interception on the client's network path (e.g., control over a router, Wi-Fi AP, proxy, or local network poisoning).
  • Trigger point: User initiates a connection, login, or other HTTPS communication from the Termix Desktop client to the configured Termix server.
  • Why exploitation is possible: The client does not properly validate the server's TLS certificate, so an attacker can present a forged or self-signed certificate and transparently terminate and re-encrypt the HTTPS session.

Why this happens

The root cause is improper TLS certificate validation in the Electron-based Termix Desktop client, aligning with CWE-295.

Instead of enforcing standard verification checks (such as certificate chain validation, hostname verification, and trust store checks), the application disables or bypasses them.

This insecure pattern effectively degrades HTTPS to an unauthenticated channel, where confidentiality and integrity depend entirely on the surrounding network rather than cryptographic assurances.

Potential impact

  • Attackers may capture usernames and passwords used to log into the Termix server.
  • Attackers may steal JWTs or other session tokens, potentially allowing unauthorized access to Termix accounts.
  • Attackers could modify responses or inject malicious content into the Termix UI, misleading administrators or hiding malicious activity.
  • Attackers may replay or reuse captured credentials or tokens to perform administrative actions on managed servers.
  • Sensitive configuration data, server details, and operational metadata could be exposed to unauthorized parties.

General mitigation guidance

Effective mitigation focuses on restoring robust TLS certificate validation and constraining trust in network paths:

  • Ensure the client performs full certificate chain validation and hostname verification against a trusted root certificate store.
  • Avoid programmatically disabling certificate checks or using insecure flags or callbacks that unconditionally accept any certificate.
  • Where custom CAs or internal PKI are required, define explicit trust anchors rather than skipping verification.
  • Encourage deployment patterns that minimize exposure to untrusted networks, and favor VPN or secure tunnels that enforce their own certificate validation.
  • Apply least-privilege principles to accounts used within Termix, so that stolen credentials or tokens grant minimal access.

How teams detect issues like this

To detect this class of vulnerability and its manifestations:

  • Use static analysis or manual code review to identify code paths that disable or weaken certificate checks (e.g., Electron session handlers that accept all certificates, Node.js HTTPS options with rejectUnauthorized: false).
  • Review security-relevant configuration in Electron and underlying HTTP/TLS libraries, looking for custom certificate verification callbacks that always succeed.
  • Implement secure coding guidelines and CI checks that flag usage of known insecure patterns related to TLS verification bypass.
  • Perform network-level testing in a controlled environment using an intercepting proxy with a self-signed certificate to confirm that clients properly reject untrusted certificates.

Sources

SourceLink
github.comgithub.com/Termix-SSH/Termix/security/advisories/GHSA-r9gw-3w87-mhh7

Frequently asked

questions

It is exploitable when an attacker can position themselves on the network path between the Termix Desktop client and the Termix server. Over the broader internet, this typically requires control over intermediary infrastructure or a compromised network, but on local or shared networks it is more practical.

The attacker does not need valid Termix credentials or local access to the client machine. They only need the ability to intercept or route the client's traffic, such as controlling a Wi-Fi access point, gateway, or proxy.

Reinstate strict TLS certificate validation in the client: enforce default HTTPS verification behavior, validate the server hostname, and rely on a trusted root CA store or explicitly configured trust anchors rather than bypassing checks.

Adopt secure defaults for TLS in all clients, prohibit disabling certificate verification in production code, enforce code review rules around TLS configuration, and use automated scanning to detect insecure HTTPS options before release.

Find out what's already
exploitable in your codebase.