electerm: a link in an AI answer runs commands on the machine
electerm fixed a chain where one click on a link in an AI answer runs commands on the user's machine.
· electerm · Research by Echore61
A link in an AI answer could navigate electerm's main window to an attacker's page, which then reached the preload bridge and ran shell commands. electerm published the advisory on November 20, 2026 and fixed it in 5.12.6.
01What happened
electerm published GHSA-g83m-h25x-x2xf on November 20, 2026 and credits Echore61 as the reporter. The advisory rates the flaw Critical at CVSS 9.6 and marks electerm 5.11.8 and earlier as affected, on POSIX and on Windows. The two fixes, pull requests 4762 and 4763, shipped in release 5.12.6 on November 22.
02How it works
Links in AI-generated markdown were plain anchors, so a click could navigate electerm's main window to any page. The window kept its preload bridge across that navigation, which left window.api reachable from the new page. electerm's IPC authorization compared only the sender's webContents with the main window's, and the navigated page shared it, so exported functions such as openFileWithEditor could still be called. On POSIX that function runs a renderer-supplied editor command through the user's login shell.
03Who is affected
electerm 5.11.8 and earlier are affected, on both POSIX systems and Windows. Reaching the flaw needs the AI panel in use and one click on a link inside an AI answer. A user who never opens the AI panel is outside the path the advisory describes.
04What to do
Update electerm to 5.12.6 or later, which carries both fix pull requests. On an older release, disable the AI panel, or treat AI answers as untrusted and do not click links in them, which is the workaround the advisory gives.
Questions people ask
- Which electerm version fixes the AI link command execution flaw?
- electerm 5.12.6, released on November 22, 2026, carries the two fixes the advisory names: pull request 4762 keeps the main window on the app origin and extends the IPC sender check, and pull request 4763 renders AI markdown links as inert text. The advisory marks every release up to and including 5.11.8 as affected.
- Am I affected if I never use electerm's AI panel?
- electerm users who keep the AI panel closed are not reachable through this path, because the chain starts with a link inside an AI answer that the user clicks. The advisory's own workaround for older releases is to disable the AI panel, or to treat AI answers as untrusted and not click links in them.
- Does the electerm flaw need a prompt injection to work?
- Prompt injection is one of three routes the electerm advisory lists. An attacker needs only to influence what the AI answer contains: a malicious API endpoint, a prompt injection, or an on-path position when the AI base URL is plain HTTP. One click on the planted link then navigates the main window and the chain begins.
- Does the electerm AI link flaw have a CVE?
- No CVE is assigned to GHSA-g83m-h25x-x2xf. electerm published the advisory itself on November 20, 2026 and set a CVSS 3.1 base score of 9.6 with the vector AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H. Defenders tracking the flaw by identifier should use the GHSA number, because no CVE record exists for it.
Sources 2 links, all fetched
- 1github.comelecterm Advisory
- 2github.comelecterm 5.12.6