CVE-2025-8020
8.2None (NPM Package Maintainer) · private-ip
The private-ip package is vulnerable to Server-Side Request Forgery (SSRF) by failing to block multicast IP addresses, allowing attackers to bypass intended private network restrictions.
Executive summary
The private-ip package contains an SSRF vulnerability that allows unauthenticated attackers to reach unintended network destinations, presenting a significant security risk.
Vulnerability
This vulnerability is a Server-Side Request Forgery (CWE-918) flaw where the package fails to correctly identify multicast IP ranges (224.0.0.0/4) as non-private, allowing an unauthenticated attacker to trigger requests to unauthorized internal or external network resources.
Business impact
The ability to perform SSRF can lead to the unauthorized exposure of internal network services, potentially allowing an attacker to probe private infrastructure that is not intended to be reachable from the internet. Given the CVSS score of 8.2, this vulnerability is considered High severity, as it facilitates unauthorized interaction with internal systems, which may lead to data exfiltration or the exploitation of other internal services that lack robust authentication.
Remediation
Immediate Action: As no official patch is currently identified, developers should audit their dependency trees and replace the private-ip package with a verified alternative or implement custom validation logic to explicitly block multicast ranges.
Proactive Monitoring: Monitor outgoing network traffic from servers utilizing this package for unusual requests targeting multicast address ranges or unexpected internal infrastructure.
Compensating Controls: Implement strict egress filtering on the host machine to block connections to non-essential internal and reserved IP ranges, effectively neutralizing the impact of an SSRF attack.
Exploitation status
Public Exploit Available: Yes, a public proof-of-concept exists as documented in the provided GitHub Gist reference.
Analyst recommendation
Due to the high severity of this SSRF vulnerability and the public availability of a proof-of-concept, immediate action is required to mitigate the risk. Organizations should prioritize replacing the vulnerable private-ip package or implementing robust input validation to ensure that multicast traffic is blocked, thereby preventing potential unauthorized access to internal network resources.
Sources
Originally found and disclosed by Liran Tal, per the CVE Program record.