Description
ftp-srv is an npm package which is a modern and extensible FTP server designed to be simple yet configurable. In ftp-srv before versions 2.19.6, 3.1.2, and 4.3.4 are vulnerable to Server-Side Request Forgery. The PORT command allows arbitrary IPs which can be used to cause the server to make a connection elsewhere. A possible workaround is blocking the PORT through the configuration. This issue is fixed in version2 2.19.6, 3.1.2, and 4.3.4. More information can be found on the linked advisory.
Remediation
References
https://github.com/autovance/ftp-srv/commit/e449e75219d918c400dec65b4b0759f60476abca
https://github.com/autovance/ftp-srv/security/advisories/GHSA-jw37-5gqr-cf9j
https://www.npmjs.com/package/ftp-srv
Related Vulnerabilities
CVE-2020-11979 Vulnerability in maven package org.apache.ant:ant
CVE-2021-23337 Vulnerability in maven package org.webjars.bower:lodash
CVE-2022-21122 Vulnerability in npm package metacalc
CVE-2020-26237 Vulnerability in maven package org.webjars.bowergithub.highlightjs:highlight.js
CVE-2022-31172 Vulnerability in npm package @openzeppelin/contracts-upgradeable