Live threats

All CVEs / Ssh2 Project

CVE-2020-26301Ssh2 Project Ssh2

Critical 10.0 No auth needed

Priority
75
CVSS 3.1
10.0
EPSS
3.8%
probability of exploitation in 30 days · percentile 91
Auth required
No
Published
Sep 20, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-78
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

What happens

ssh2 is client and server modules written in pure JavaScript for node.js. In ssh2 before version 1.4.0 there is a command injection vulnerability. The issue only exists on Windows. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. This is fixed in version 1.4.0.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ssh2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm ssh2 < 1.4.0 1.4.0 npm install ssh2@1.4.0

Per OSV / GitHub Advisories (GHSA-652h-xwhf-q4h6). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ssh2_projectssh2< 1.4.0

Official sources

References

Links published by the sources. Open them with care.