Skip to main content

private-ip CVE-2025-8020

HIGH
Server-Side Request Forgery (SSRF) (CWE-918)
2025-07-23 report@snyk.io
7.8
CVSS 4.0 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted URL with multicast IP
  2. Delivery
    Application validates via private-ip (bypass)
  3. Exploit
    Server makes outbound request to internal resource
  4. Execution
    Access internal service/metadata endpoint
  5. Impact
    Exfiltrate sensitive data or modify internal state

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires applications to use the private-ip npm package for server-side validation of IP addresses or hostnames before making outbound network requests. The vulnerable code path is triggered when user-controlled input (URLs, IP addresses, or hostnames from API parameters, webhook configurations, file upload processing, or link preview features) is passed to private-ip's validation functions. No authentication is required from the attacker's perspective (PR:N), and exploitation succeeds against default package configurations without special settings. The application must perform outbound HTTP/network requests based on the validated input for impact to occur. Limiting factors: exploitation requires the application logic to actually make network requests after validation (not just validate and log), and impact severity depends on what internal network resources are accessible from the application host and whether those resources trust requests from the application's source IP.

Impact

Real-world risk is elevated due to converging threat indicators: CVSS 4.0 vector shows network-accessible (AV:N), low complexity (AC:L), no privileges required (PR:N), and no user interaction (UI:N), indicating trivial exploitation against any exposed application using private-ip for request validation. The E:P metric confirms proof-of-concept exploit code exists, referenced in the Snyk advisory and demonstrated in the linked GitHub Gist. However, no CISA KEV listing at time of analysis suggests exploitation is not yet widespread in the wild, though the low barrier to entry (AC:L, PR:N) makes automated scanning feasible. Impact assessment reveals high confidentiality impact (VC:H) from internal network data exposure and low integrity impact (VI:L) from potential write operations to internal services, with no availability impact (VA:N). The SSRF tag and multicast bypass technique suggest this is exploitable in cloud environments and containerized deployments where applications trust private-ip to filter backend service requests. Primary risk applies to Node.js applications using this package for URL validation in server-side HTTP clients, webhook handlers, or API proxies. Absence of EPSS data limits quantitative exploitation probability assessment, but the combination of public POC, trivial attack complexity, and common deployment pattern (SSRF prevention libraries) indicates this should be prioritized for remediation in affected environments.

Exploit ScenarioDerived

An attacker identifies a Node.js web application using private-ip to validate user-supplied URLs before fetching content (e.g., a link preview feature or webhook registration endpoint). The attacker submits a request with a hostname that resolves to a multicast IP address in the 224.0.0.0/4 range or directly provides a multicast IP. The private-ip library incorrectly validates this as a safe public address, and the application proceeds to make an HTTP request to this IP. Since multicast addresses can be used for internal service discovery protocols or bypassed entirely to access adjacent network segments, the attacker leverages this to probe internal network topology, access metadata services (cloud environment IMDSv1 endpoints accessible via multicast routing misconfigurations), or interact with internal APIs that trust requests from the application server, exfiltrating sensitive data or modifying internal state. Public proof-of-concept code exists demonstrating the multicast bypass technique.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 29, 2026

Server-Side Request Forgery (SSRF) in the private-ip npm package allows remote unauthenticated attackers to bypass IP filtering by providing multicast addresses (224.0.0.0/4) that the library incorrectly validates as safe, enabling access to internal network resources. This affects all versions of the package with a CVSS 4.0 score of 7.8 (High) and proof-of-concept exploit code is publicly available per the E:P metric. Organizations using private-ip for server-side request validation are at immediate risk of internal network reconnaissance and data exfiltration.

RemediationAI

No vendor-released patch identified at time of analysis for the private-ip package. Immediate compensating controls: (1) Replace private-ip with alternative IP validation libraries that include comprehensive non-routable range checking including multicast addresses (224.0.0.0/4), such as ip-address or implementing custom validation against RFC-defined reserved ranges (RFC 5771, RFC 1918, RFC 3927). Trade-off: requires code refactoring and testing of replacement library behavior. (2) Implement application-layer allowlisting of permitted destination domains/IPs rather than blocklisting private ranges, restricting outbound requests to explicitly approved external endpoints only. Trade-off: reduces flexibility for dynamic URL handling and requires maintenance of allowlist. (3) Deploy network-layer egress filtering on application hosts to block traffic to multicast ranges (224.0.0.0/4), RFC 1918 private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), link-local (169.254.0.0/16), and loopback (127.0.0.0/8) at firewall or security group level. Trade-off: defense-in-depth but does not prevent exploitation of other internal network resources accessible from the application host. Monitor Snyk advisory https://security.snyk.io/vuln/SNYK-JS-PRIVATEIP-9510757 for patch release announcements. Organizations should audit all code using private-ip.isPrivateIP() or similar methods and treat validation results as untrusted until mitigation is deployed.

Affected Packages

npm private-ip no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The private-ip npm package is a JavaScript library used to validate whether IP addresses or hostnames belong to private/internal network ranges, commonly deployed in server-side applications to prevent SSRF attacks. The vulnerability stems from incomplete IP range validation logic (CWE-918: Server-Side Request Forgery) where the package's source code fails to include multicast IP addresses (224.0.0.0 through 239.255.255.255, CIDR 224.0.0.0/4) in its blocklist of non-routable addresses. According to RFC 5771, multicast addresses are reserved for group communication protocols and should not be considered safe external targets. Attackers exploit this by providing hostnames that resolve to multicast IPs or directly passing multicast addresses, which the library incorrectly classifies as public/safe addresses, bypassing SSRF protections in applications relying on this validation.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

All versions of the package private-ip are vulnerable to Server-Side Request Forgery (SSRF) where an attacker can provide an IP or hostname that resolves to a multicast IP address (224.0.0.0/4) which is not included as part of the private IP ranges in the package's source code.

Executive ViewAI

Why It Matters

CVE-2025-8020 is a critical server-side request forgery vulnerability in the private-ip npm package that allows unauthenticated attackers to bypass IP filtering controls using multicast addresses, potentially exposing internal network resources and enabling lateral reconnaissance. Organizations relying on this library for request validation face immediate risk of unauthorized access to backend systems and sensitive internal infrastructure. Remediation is urgent given public exploit availability and the fundamental nature of the control bypass.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement network egress filtering to block requests to RFC 1918 private ranges and multicast ranges (224.0.0.0/4, 169.254.0.0/16); (2) Deploy WAF rules blocking requests with reserved/multicast IP targets; (3) Add application-level allowlist validation requiring explicit approval for internal resource access; (4) Enforce mutual TLS for internal service communication to prevent unauthorized access even if filtering bypassed; (5) Disable private-ip validation if not critical to business function and use alternative hardened IP validation library; (6) Implement request logging and alerting for any attempts to access multicast or reserved IP ranges.

Threat Intelligence Overview

EPSS Score
0.0%
Top 93% exploitable
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy