private-ip Server-Side Request Forgery Vulnerability

Vulnerability

A Server-Side Request Forgery (SSRF) vulnerability exists in all versions of the private-ip package. This vulnerability allows an attacker to provide an IP or hostname that resolves to a multicast IP address (224.0.0.0/4), which is not recognized as private by the package. The issue arises because the package's source code does not include multicast addresses in its private IP range allowlist.

Impact

Exploitation of this vulnerability could lead to unauthorized access to internal services or resources by allowing an attacker to manipulate server-side requests.

Reproduction

To reproduce this vulnerability, install the private-ip package and create a JavaScript file that imports the package. Use the package's API to check the privacy of various IP addresses, including a multicast address. When the file is executed, the private-ip package will incorrectly identify the multicast IP as private, demonstrating the SSRF bypass.

Added: Jul 23, 2025, 5:20 AM
Updated: Jul 23, 2025, 5:20 AM

Vulnerability Rating

Custom Algorithm
spread
4.2
impact
1.9
exploitability
6.0
remediation
0.0
relevance
0.3
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.