Server-side Request Forgery (SSRF) Affecting private-ip package, versions <2.3.0
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JS-PRIVATEIP-1044035
- published 24 Nov 2020
- disclosed 24 Nov 2020
- credit Unknown
Introduced: 24 Nov 2020
CVE-2020-28360 Open this link in a new tabHow to fix?
Upgrade private-ip
to version 2.3.0 or higher.
Overview
private-ip is a Check if IP address is private.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF). An attacker can perform a large range of requests to ARIN reserved IP ranges, resulting in an indeterminable number of critical attack vectors, allowing remote attackers to request server-side resources or potentially execute arbitrary code through various SSRF techniques.
Note: previous fix (2.2.0) was incomplete because it didn't take into account different representations of IPs. A complete fixed commit was released in 2.3.0