{"id":"CVE-2026-43941","aliases":["CVE-2026-43941","GHSA-fwf6-j56g-m97c"],"related":[],"kind":"vulnerability","state":"published","title":"Unvalidated shell.openExternal in electerm allows arbitrary protocol execution via terminal link click","summary":"electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. In versions 3.8.15 and prior, Electerm's terminal hyperlink handler passes any URL clicked in the terminal directly to shell.openExternal without any protocol validation. An 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. At time of publication, there are no publicly available patches.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. In versions 3.8.15 and prior, Electerm's terminal hyperlink handler passes any URL clicked in the terminal directly to shell.openExternal without any protocol validation. An 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. At time of publication, there are no publicly available patches.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nElecterm's terminal hyperlink handler passes any URL clicked in the terminal directly to `shell.openExternal` without any protocol validation.\n\nWhen 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.\n\nThis can be abused to:\n- Trigger dangerous protocol handlers (`ms-msdt:`, `search-ms:`) for code execution\n- Open local files or network shares (`file://`, UNC paths) to leak NTLM hashes or exfiltrate data\n- Launch any installed application associated with a custom URI scheme\n\nAn 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.\n\n### Patches\n\nAs of electerm v3.7.9, no official patch has been released. Users should monitor the project’s [GitHub releases](https://github.com/electerm/electerm/releases) and [security page](https://github.com/electerm/electerm/security) for an update addressing this issue.\n\n### Workarounds\n\nUntil a patch is available:\n- Do not click on any links displayed in terminal sessions connected to untrusted servers.\n- If possible, disable hyperlink rendering in electerm's terminal settings.\n- Use a terminal multiplexer (e.g., tmux) or a separate terminal application that filters URI schemes when working with untrusted hosts.\n- Consider running electerm in a restricted environment (sandbox, AppArmor, SELinux) that limits the spawning of protocol handlers.\n\n### Resources\n\n- [electerm GitHub Repository](https://github.com/electerm/electerm)\n- [electerm Security Policy](https://github.com/electerm/electerm/security)\n- Vulnerability details originally reported by external researcher (confirmed on v3.7.9, Win10).","format":"markdown","source":"ghsa"},{"lang":"es","text":"electerm es un cliente de terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp de código abierto. En las versiones 3.8.15 y anteriores, el gestor de hipervínculos de terminal de Electerm pasa cualquier URL clicada en el terminal directamente a shell.openExternal sin ninguna validación de protocolo. Un atacante que controla la salida del terminal (por ejemplo, a través de un servidor SSH malicioso, un host remoto comprometido o un plugin malicioso que renderiza contenido del terminal) puede así lograr la ejecución de código arbitrario o acceso a archivos locales en la máquina de la víctima, requiriendo solo que la víctima haga clic en un enlace mostrado. En el momento de la publicación, no hay parches disponibles públicamente.","source":"nvd"}],"published":"2026-05-08T03:01:12.461Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","score":9.6,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-88","CWE-601"],"affected":[{"ranges":[{"version":"<= 3.8.15","status":"affected"}],"vendor":"electerm","product":"electerm","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"3.8.15"}],"ecosystem":"npm","package":"electerm","purl":"pkg:npm/electerm","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"3.8.15"}],"vendor":"electerm_project","product":"electerm","cpe":"cpe:2.3:a:electerm_project:electerm:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electerm/electerm/security/advisories/GHSA-fwf6-j56g-m97c","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43941","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electerm/electerm","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-08T14:34:47.525Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43941","url":"https://www.cve.org/CVERecord?id=CVE-2026-43941","licence":"CVE Terms of Use","modified":"2026-05-08T21:28:44.766Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fwf6-j56g-m97c","url":"https://github.com/advisories/GHSA-fwf6-j56g-m97c","licence":"CC-BY-4.0","modified":"2026-05-08T18:56:25.919Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43941","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43941","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:20.953Z","epss":{"score":0.00394,"percentile":0.35713,"date":"2026-12-01T12:00:22.000Z"}}