Server-side Request Forgery (SSRF) Affecting private-ip package, versions <2.3.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.92% (84th percentile)

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 Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-PRIVATEIP-1044035
  • published24 Nov 2020
  • disclosed24 Nov 2020
  • creditUnknown

Introduced: 24 Nov 2020

CVE-2020-28360  (opens in a new tab)
CWE-918  (opens in a new tab)

How 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

CVSS Scores

version 3.1