Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Lifecycle Timeline
4DescriptionGitHub Advisory
electerm is an open-sourced terminal/ssh/sftp/telnet/serialport/RDP/VNC/Spice/ftp client. Prior to version 3.3.8, a command injection vulnerability exists in github.com/elcterm/electerm/npm/install.js:150. The runMac() function appends attacker-controlled remote releaseInfo.name directly into an exec("open ...") command without validation. This issue has been patched in version 3.3.8.
AnalysisAI
Command injection in electerm's npm install script allows arbitrary command execution on macOS systems during 'npm install -g electerm'. The runMac() function in install.js:150 passes attacker-controlled remote release metadata (releaseInfo.name) directly to exec('open ...') without validation, enabling remote code execution as the installing user. CVSS 9.8 (AV:N/AC:L/PR:N/UI:N) reflects theoretical network-based exploitation, though actual attack requires compromise of the project's update server or man-in-the-middle position during npm package installation. No public exploit identified at time of analysis. Vendor-released patch: version 3.3.8 (commit 59708b3).
Technical ContextAI
This vulnerability stems from unsafe use of Node.js child_process.exec() in an npm postinstall script. CWE-77 (Command Injection) occurs when the install.js script retrieves release metadata from a remote server and concatenates the unsanitized 'name' field into a shell command executed via exec(). The affected code path is specific to macOS installations where runMac() opens downloaded packages. CPE cpe:2.3:a:electerm:electerm identifies the affected product as electerm's npm package. The vulnerability exists in the package installation lifecycle, not the runtime application itself. The commit diff shows the vulnerable install.js was replaced with a safer implementation using tar extraction and spawn() instead of exec(), and the auto-open behavior on macOS was removed entirely.
RemediationAI
Upgrade to electerm version 3.3.8 or later via 'npm install -g electerm@latest'. The fix in commit 59708b38c8a52f5db59d7d4eff98e31d573128ee removes the vulnerable exec() call entirely, replacing install.js with a safer implementation using tar extraction and child_process.spawn() with separated arguments. The auto-open behavior on macOS was eliminated. Users who installed pre-3.3.8 versions should verify no malicious commands were executed during installation by reviewing shell history and system logs from the installation timeframe. No workaround exists for older versions per the vendor advisory - upgrade is mandatory. As the vulnerability is in the install script rather than runtime code, already-installed instances pose no ongoing risk, but all future installations/updates should use 3.3.8+. Release notes: https://github.com/electerm/electerm/releases/tag/v3.3.8. Patch commit: https://github.com/electerm/electerm/commit/59708b38c8a52f5db59d7d4eff98e31d573128ee.
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic
Directory traversal vulnerability in lib/app/index.js in Geddy before 13.0.8 for Node.js allows remote attackers to read
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Eval injection vulnerability in index.js in the syntax-error package before 1.1.1 for Node.js 0.10.x, as used in IBM Rat
The HTTP server in Node.js 0.10.x before 0.10.21 and 0.8.x before 0.8.26 allows remote attackers to cause a denial of se
Same weakness CWE-77 – Command Injection
View allSame technique Command Injection
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-28496
GHSA-wxw2-rwmh-vr8f