Security mailing lists by PureSourceCode

GHSA-r4m5-47cq-6qg8

HIGH

Server-Side Request Forgery in ftp-srv

All versions of ftp-srv from v1.0.0 onward to v4.3.3 are vulnerable to Server-Side Request Forgery (SSRF). The package fails to prevent remote clients to access other resources in the network, for example when connecting to the server through telnet. This allows attackers to access any network resources available to the server, including private resources in the hosting environment.

Recommendation

Upgrade to patched versions
^2.19.6, ^3.1.2, ^4.3.4

Workarounds

Blacklisting the FTP Command PORT will prevent the server from exposing this behaviour through active connections until a fix is applied.

const ftp = new FtpSrv({
  blacklist: ['PORT']
});
Published
4 Sep 2020
Last modified
8 Jan 2024
Weakness
CWE-918
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm ftp-srv >= 1.0.0, < 2.19.6 2.19.6
OSV npm ftp-srv >= 3.0.0, < 3.1.2 3.1.2
OSV npm ftp-srv >= 4.0.0, < 4.3.4 4.3.4

References

History

  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 4 Sep 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.