Command Injection Affecting electerm package, versions <3.11.11


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-ELECTERM-17812773
  • published4 Jul 2026
  • disclosed2 Jul 2026
  • creditUnknown

Introduced: 2 Jul 2026

NewCVE-2026-49255  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade electerm to version 3.11.11 or higher.

Overview

electerm is an open-sourced terminal/ssh/telnet/serialport/sftp client

Affected versions of this package are vulnerable to Command Injection via the rmrf, mv, and cp functions. An attacker can execute arbitrary commands by supplying specially crafted file names containing shell metacharacters, which are interpolated directly into shell command strings without proper sanitization. This can occur when connecting to a malicious SSH/SFTP server that presents files with crafted names, leading to command execution on the victim's system when file operations are performed.

Workaround

This vulnerability can be mitigated by only connecting to trusted SSH/SFTP servers, avoiding remote-to-local file transfers from untrusted sources, not using the "rename on conflict" option when downloading folders from untrusted servers, and manually verifying filenames before performing file operations.

CVSS Base Scores

version 4.0
version 3.1