CVE-2020-26301Ssh2 Project Ssh2
Critical 10.0 No auth needed
Follow: this CVE · Ssh2 Project · Ssh2 Project Ssh2 We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Ssh2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| ssh2_project | ssh2 | < 1.4.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- securitylab.github.com Exploit Patch Third Party Advisory
- www.npmjs.com Product Third Party Advisory