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.
Remediation
References
https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/
https://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21
https://www.npmjs.com/package/ssh2
Related Vulnerabilities
CVE-2023-31999 Vulnerability in npm package @fastify/oauth2
CVE-2019-10754 Vulnerability in maven package org.apereo.cas:cas-server-core-services-api
CVE-2023-36478 Vulnerability in maven package org.eclipse.jetty:jetty-http
CVE-2020-36144 Vulnerability in npm package redash
CVE-2023-33201 Vulnerability in maven package org.bouncycastle:bcprov-jdk15on