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


Severity

Recommended
0.0
medium
0
10

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.96% (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 ID SNYK-JS-PRIVATEIP-1044035
  • published 24 Nov 2020
  • disclosed 24 Nov 2020
  • credit Unknown

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
Expand this section

Snyk

5.9 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    None
  • Availability (A)
    None
Expand this section

NVD

9.8 critical