MEDIUM6.5
GHSA-6gww-qpm6-mc2g
Server-Side Request Forgery in ssrf-agent
Quick fix
GHSA-6gww-qpm6-mc2g — ssrf-agent: upgrade to the fixed version with the command below.
npm install ssrf-agent@1.0.5Details
The package ssrf-agent before 1.0.5 are vulnerable to Server-side Request Forgery (SSRF) via the defaultIpChecker function. It fails to properly validate if the IP requested is private.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-23718[ADVISORY]
- https://github.com/welefen/ssrf-agent/commit/9607175acd0647d821bae4e8fcc3b712aca3fd2d#diff-e727e4bdf3657fd1d798edcd6b099d6e092f8573cba266154583a746bba0f346[WEB]
- https://github.com/welefen/ssrf-agent[PACKAGE]
- https://github.com/welefen/ssrf-agent/blob/cec2b85fe8886ad6926a247a3e059d8369ec022b/index.js%23L13[WEB]
- https://security.netapp.com/advisory/ntap-20211203-0005[WEB]
- https://snyk.io/vuln/SNYK-JS-SSRFAGENT-1584362[WEB]