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-2023-22474 Vulnerability in npm package parse-server
CVE-2019-17566 Vulnerability in maven package org.apache.xmlgraphics:batik-transcoder
CVE-2022-48345 Vulnerability in npm package @braintree/sanitize-url
CVE-2015-0250 Vulnerability in maven package org.eclipse.birt.runtime:org.apache.batik.dom
CVE-2021-21254 Vulnerability in npm package @ckeditor/ckeditor5-markdown-gfm