Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious bookmark JSON with exec fields
-
DeliveryDeliver via shared file or compromised sync target
-
ExploitVictim imports bookmark or sync applies
-
ExecutionElecterm spawns local pty with injected commands
-
PersistAttacker code executes as user
-
ImpactPersist via additional bookmark entries
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the victim to either (a) import a bookmark JSON file containing attacker-controlled |
| Impact | The CVSS 4.0 score of 9.4 reflects Network attack vector, Low complexity, No privileges required, but Active user interaction (UI:A) with High impact across confidentiality, integrity, and availability for both vulnerable and subsequent systems. In practical terms, the network/no-auth vector is misleading on its own - exploitation requires the victim to import a malicious bookmark file or to have a sync target the attacker controls, so this behaves more like a client-side, social-engineering-driven RCE than a remote service flaw. EPSS data was not provided, the CVE is not on the CISA KEV list, and no public exploit was identified at time of analysis, suggesting the realistic threat is opportunistic targeting of Electerm users who share bookmark files or use third-party sync (Gist/WebDAV) rather than widespread mass exploitation. Risk should be prioritized for environments where engineers commonly exchange Electerm bookmark files or use shared/untrusted sync endpoints; otherwise it is a meaningful but conditional client-side RCE. |
| Exploit ScenarioDerived | An attacker hosts a crafted Electerm bookmark JSON file containing malicious |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – May 28, 2026
Code execution in Electerm (npm package, versions <= 3.8.8) allows attackers to achieve persistent local-pty code execution by tricking users into importing malicious bookmark JSON files or by compromising configured sync targets (Gist/WebDAV). The flaw stems from unsafe handling of bookmark fields (exec*) and global config entries, which are executed when a bookmark is opened or when sync is applied. No public exploit identified at time of analysis, and no vendor-released patch is identified at time of analysis.
Earlier versions of this analysis (2)
Remote code execution in Electerm versions 3.8.8 and earlier allows attackers to achieve persistent local-pty code execution by injecting malicious exec* fields or global configuration into bookmark JSON files or sync targets (Gist/WebDAV). Triggered when a victim imports a tampered bookmark file or opens a synced bookmark, the flaw stems from unsafe handling of imported terminal-bookmark data (CWE-94 code injection). No public exploit identified at time of analysis, and no vendor-released patch is identified at time of analysis.
Persistent code execution in electerm (npm package, versions ≤3.8.8) allows attackers to inject malicious code through imported bookmark JSON files or compromised sync targets (GitHub Gist/WebDAV). When victims import crafted bookmarks or apply synchronized configuration, the injected exec* fields or global config execute arbitrary code in the local PTY context upon bookmark activation. No vendor patch exists at time of analysis. EPSS and KEV data not available for this CVE, indicating recent disclosure without confirmed widespread exploitation.
RemediationAI
No vendor-released patch identified at time of analysis - the GHSA advisory explicitly states 'Patches: Not yet' and no fixed version is listed in the npm advisory. Until a patched release appears at https://github.com/electerm/electerm/releases, the only vendor-suggested workaround is to avoid importing bookmark JSON from untrusted sources; in addition, security teams should disable or unconfigure third-party bookmark sync (Gist/WebDAV) when the sync endpoint is not fully controlled, since a compromised sync target also triggers this issue, accepting the trade-off of losing cross-device bookmark synchronization. Organizations may also restrict execution of Electerm to managed endpoints, block bookmark imports through endpoint policy or application allow-listing, and audit existing bookmark files for unexpected exec* fields or unusual global config entries before re-importing.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Electerm is an open-source Electron-based SSH/terminal/SFTP client distributed via npm. The root cause is CWE-94 (Improper Control of Generation of Code, i.e., code injection): bookmark JSON imports and synced configuration data are deserialized into runtime configuration containing exec* fields that the application later executes via a local pseudo-terminal (pty). Because the application uses Electron and spawns shell processes from user-controlled bookmark metadata without sufficient validation, attacker-supplied JSON effectively becomes shell command input. The CPE pkg:npm/electerm identifies the affected package, and the GitHub Security Advisory GHSA-jgg9-rw32-44pj scopes the impact to all versions through 3.8.8.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
4DescriptionGitHub Advisory
Impact
_Persistent local-pty code execution via imported bookmarks or compromised sync targets. Affects users who import bookmark JSON files or who have electerm sync configured (gist/WebDAV). The attacker can inject exec* fields or global config to cause remote code to run when a bookmark is opened or when sync is applied._
Patches
Not yet
Workarounds
- Do not import unsafe data
References
- Report / credit: https://github.com/Curly-Haired-Baboon
- Electerm releases: https://github.com/electerm/electerm/releases
Executive ViewAI
Electerm, an npm package used for terminal session management, contains a critical code execution flaw affecting all versions up to 3.8.8. Attackers can achieve persistent control of systems by delivering malicious bookmark files or compromising the application's sync targets (GitHub Gist or WebDAV storage). This creates a supply-chain risk for any team using bookmarks or cloud synchronization features.
No vendor-released patch identified at time of analysis. Interim mitigations: disable all sync functionality (Gist, WebDAV) in application settings; implement file-integrity monitoring on bookmark JSON files; restrict write access to sync storage targets (GitHub accounts, WebDAV servers); educate users to reject bookmark imports from external sources; consider running Electerm in containerized or VM-based isolation to limit blast radius of code execution.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-32961
GHSA-jgg9-rw32-44pj
NVD
CVE.org
EPSS
Exploit-DB