CVE-2020-26301
CRITICAL 10.0CVSS 3.1OS Command Injection in ssh2
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.
- Published
- 20 Sep 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-78
- Also known as
- GHSA-652h-xwhf-q4h6
- Sources
- NVDJSONOSV GHSA-652h-xwhf-q4h6JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ssh2_project | ssh2cpe:2.3:a:ssh2_project:ssh2:*:*:*:*:*:node.js:*:* |
< 1.4.0 | 1.4.0 |
| OSV | npm | ssh2 | < 1.4.0 | 1.4.0 |
References
- https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21 · Patch, Third Party Advisory, WEB
- https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/ · Exploit, Patch, Third Party Advisory, ADVISORY
- https://www.npmjs.com/package/ssh2 · Product, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2020-26301 · ADVISORY
- https://github.com/mscdex/ssh2 · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 20 Sep 2021)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 21 Sep 2021)