Read the docs
TI-2020-19945 Aliases GHSA-r4m5-47cq-6qg8

Server-Side Request Forgery in ftp-srv

Priority LOW 38CWE-918Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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'] }); ```

Why it matters now

Fix Fixed ftp-srv (npm): 2.19.6, 3.1.2, 4.3.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—ftp-srv (npm)1.0.0 to before 2.19.62.19.6Patch availableGHSA-r4m5-47cq-6qg8
—ftp-srv (npm)3.0.0 to before 3.1.23.1.2Patch availableGHSA-r4m5-47cq-6qg8
—ftp-srv (npm)4.0.0 to before 4.3.44.3.4Patch availableGHSA-r4m5-47cq-6qg8
  • ftp-srv (npm) Vendor— Affected 1.0.0 to before 2.19.6 Fixed in 2.19.6 Patch available GHSA-r4m5-47cq-6qg8
  • ftp-srv (npm) Vendor— Affected 3.0.0 to before 3.1.2 Fixed in 3.1.2 Patch available GHSA-r4m5-47cq-6qg8
  • ftp-srv (npm) Vendor— Affected 4.0.0 to before 4.3.4 Fixed in 4.3.4 Patch available GHSA-r4m5-47cq-6qg8

Remediation

  • Fix · GHSA-r4m5-47cq-6qg8 ftp-srv (npm) Fixed in 2.19.6 Advisory →
  • Fix · GHSA-r4m5-47cq-6qg8 ftp-srv (npm) Fixed in 3.1.2 Advisory →
  • Fix · GHSA-r4m5-47cq-6qg8 ftp-srv (npm) Fixed in 4.3.4 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-r4m5-47cq-6qg8

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences