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://github.com/mscdex/ssh2/commit/f763271f41320e71d5cbee02ea5bc6a2ded3ca21
https://securitylab.github.com/advisories/GHSL-2020-123-mscdex-ssh2/
https://www.npmjs.com/package/ssh2
Related Vulnerabilities
CVE-2016-0792 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2018-1000614 Vulnerability in maven package org.onosproject:onos-netconf-provider-alarm
CVE-2023-50730 Vulnerability in maven package edu.gemini:gsp-graphql-core_sjs1_3
CVE-2021-31811 Vulnerability in maven package org.apache.pdfbox:pdfbox
CVE-2018-1000129 Vulnerability in maven package org.jolokia:jolokia-core