Electerm's terminal hyperlink handler passes any URL clicked in the terminal directly to shell.openExternal without any protocol validation.
When a user connects to a malicious SSH server, the attacker can print a crafted URI in the terminal output. If the victim clicks the link, shell.openExternal executes it using the operating system's default protocol handler.
This can be abused to:
ms-msdt:, search-ms:) for code executionfile://, UNC paths) to leak NTLM hashes or exfiltrate dataAn attacker who controls terminal output (e.g., via a malicious SSH server, compromised remote host, or malicious plugin rendering terminal content) can thus achieve arbitrary code execution or local file access on the victim's machine, requiring only that the victim clicks a displayed link.
As of electerm v3.7.9, no official patch has been released. Users should monitor the project’s GitHub releases and security page for an update addressing this issue.
Until a patch is available:
{
"cwe_ids": [
"CWE-601",
"CWE-88"
],
"github_reviewed": true,
"github_reviewed_at": "2026-05-08T18:35:17Z",
"nvd_published_at": "2026-05-08T04:16:23Z",
"severity": "HIGH"
}