# GHSA-r4m5-47cq-6qg8: Server-Side Request Forgery in ftp-srv

- Severity: High (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2020-09-04T17:25:13.000Z
- Modified: 2024-01-08T21:29:30.000Z
- Weaknesses: CWE-918

## Description

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

(As written by GitHub Advisory Database.)

## Affected

- ftp-srv (npm): from 1.0.0 before 2.19.6; from 3.0.0 before 3.1.2; from 4.0.0 before 4.3.4

## References

- <https://github.com/QuorumDMS/ftp-srv/security/advisories/GHSA-jw37-5gqr-cf9j> (web)
- <https://github.com/QuorumDMS/ftp-srv> (package)
- <https://www.npmjs.com/advisories/1445> (web)

## Sources

- GitHub Advisory Database: [GHSA-r4m5-47cq-6qg8](https://github.com/advisories/GHSA-r4m5-47cq-6qg8), CC-BY-4.0, modified 2024-01-08

---

Page: https://cve.day/GHSA-r4m5-47cq-6qg8 · Whole record: https://cve.day/GHSA-r4m5-47cq-6qg8.json · Rebuilt by cve.day 2026-11-25T22:56:46.396Z
