Server-Side Request Forgery in ftp-srv
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
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | ftp-srv (npm) | 1.0.0 to before 2.19.6 | 2.19.6 | Patch available | GHSA-r4m5-47cq-6qg8 |
| — | ftp-srv (npm) | 3.0.0 to before 3.1.2 | 3.1.2 | Patch available | GHSA-r4m5-47cq-6qg8 |
| — | ftp-srv (npm) | 4.0.0 to before 4.3.4 | 4.3.4 | Patch available | GHSA-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
- 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