Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-29415

CVE-2024-29415: Node.js IP Package SSRF Vulnerability

CVE-2024-29415 is an SSRF flaw in the IP package for Node.js that incorrectly categorizes private IP addresses as public, allowing server-side request forgery attacks. This post covers technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-29415 Overview

CVE-2024-29415 is a Server-Side Request Forgery (SSRF) vulnerability affecting the ip package through version 2.0.1 for Node.js. The vulnerability exists because certain IP addresses are improperly categorized as globally routable via the isPublic function when they should be recognized as private or loopback addresses. This allows attackers to bypass SSRF protections that rely on the ip package for IP address validation.

The vulnerability stems from an incomplete fix for a previous vulnerability, CVE-2023-42282, which addressed similar IP address validation issues. Various IP address representations including octal notation (e.g., 01200034567, 012.1.2.3), shorthand formats (e.g., 127.1), IPv6 mixed notation (e.g., ::fFFf:127.0.0.1), and compressed IPv6 formats (e.g., 000:0:0000::01) can bypass the isPublic check and be incorrectly classified as publicly routable addresses.

Critical Impact

Applications using the ip package to validate user-supplied IP addresses before making network requests may be vulnerable to SSRF attacks, potentially allowing attackers to access internal services, cloud metadata endpoints, and other protected resources.

Affected Products

  • Node.js ip package through version 2.0.1
  • Applications using the ip package for IP address validation in SSRF protection mechanisms
  • Systems relying on isPublic() function for distinguishing internal from external IP addresses

Discovery Timeline

  • 2024-05-27 - CVE-2024-29415 published to NVD
  • 2025-01-17 - Last updated in NVD database

Technical Details for CVE-2024-29415

Vulnerability Analysis

The ip package provides utility functions for working with IP addresses in Node.js applications, including the isPublic() function that determines whether an IP address is publicly routable. A common security pattern involves using this function to prevent SSRF by rejecting requests to private or loopback addresses.

The vulnerability occurs because the isPublic() function fails to properly handle various non-standard IP address representations that resolve to private or loopback addresses. When an application uses this function to validate user-supplied URLs or IP addresses before making HTTP requests, an attacker can craft specially formatted IP addresses that pass the isPublic() check but actually resolve to internal addresses.

For example, 127.1 resolves to 127.0.0.1 (localhost), and octal-encoded addresses like 012.1.2.3 can represent different addresses than their decimal equivalents. The IPv6 mixed format ::fFFf:127.0.0.1 is an IPv4-mapped IPv6 address pointing to localhost.

Root Cause

The root cause is inadequate input normalization and validation in the IP address parsing logic. The isPublic() function does not properly canonicalize IP addresses before checking them against private and reserved IP ranges. This allows various alternative representations of the same IP address to produce different validation results.

This issue represents an incomplete remediation of CVE-2023-42282, indicating that the original fix did not comprehensively address all possible IP address encoding variations that could be used to bypass the validation logic.

Attack Vector

The attack requires network access and involves an attacker supplying maliciously crafted IP addresses to an application that uses the vulnerable ip package for SSRF protection. The attack flow typically follows this pattern:

  1. Attacker identifies an application endpoint that accepts user-controlled URLs or IP addresses
  2. The application uses ip.isPublic() to validate that the target is not an internal address
  3. Attacker supplies a URL containing a specially formatted IP address (e.g., http://127.1/, http://012.1.2.3/)
  4. The isPublic() function incorrectly returns true, classifying the address as publicly routable
  5. The application proceeds to make a request to what is actually an internal address
  6. Attacker gains access to internal services, cloud metadata endpoints, or other protected resources

The vulnerability can be exploited to access cloud provider metadata services (typically at 169.254.169.254), internal APIs, administrative interfaces, or any other services reachable from the vulnerable server but not intended to be publicly accessible.

Detection Methods for CVE-2024-29415

Indicators of Compromise

  • Unusual outbound network requests from application servers to loopback or private IP ranges
  • Access logs showing requests with non-standard IP address formats (octal notation, shorthand formats, IPv6 mixed notation)
  • Requests to cloud metadata endpoints (169.254.169.254) from application servers
  • Error logs indicating failed connections to internal services that should not be accessible from the application

Detection Strategies

  • Audit application dependencies for vulnerable versions of the ip package using npm audit or similar dependency scanning tools
  • Monitor network traffic for connections to private IP ranges originating from web application servers
  • Implement Web Application Firewall (WAF) rules to detect and block non-standard IP address formats in user input
  • Review application logs for URL parameters containing octal-encoded or shorthand IP addresses

Monitoring Recommendations

  • Enable detailed logging for all outbound HTTP requests made by the application
  • Configure alerts for network connections from application servers to RFC 1918 private address ranges or localhost
  • Monitor for access patterns consistent with SSRF exploitation, such as sequential probing of internal IP addresses
  • Implement anomaly detection for unusual destination IPs in outbound traffic from application servers

How to Mitigate CVE-2024-29415

Immediate Actions Required

  • Update the ip package to a patched version if available, or implement additional validation layers
  • Review all code paths that use ip.isPublic() or similar functions for SSRF protection
  • Implement defense-in-depth measures by combining IP validation with network-level controls
  • Consider using allowlists of permitted external hosts rather than blocklists of internal addresses

Patch Information

The vulnerability was initially reported through GitHub Issue #150. Proposed fixes are available in GitHub Pull Request #143 and GitHub Pull Request #144. NetApp has also issued a security advisory addressing this vulnerability in their affected products via NetApp Security Advisory ntap-20250117-0010.

Organizations should monitor the node-ip repository for an official patched release and apply updates as soon as they become available.

Workarounds

  • Implement additional IP address normalization before calling validation functions to convert all representations to a canonical format
  • Use network-level controls such as egress firewall rules to prevent application servers from connecting to internal address ranges
  • Consider alternative IP validation libraries that properly handle non-standard address formats
  • Implement a URL allowlist approach that only permits requests to explicitly approved external domains rather than attempting to block internal addresses
bash
# Configuration example: Egress firewall rules to block internal access (iptables)
# Block outbound connections to loopback from application user
iptables -A OUTPUT -o lo -m owner --uid-owner www-data -j DROP

# Block RFC 1918 private ranges
iptables -A OUTPUT -d 10.0.0.0/8 -m owner --uid-owner www-data -j DROP
iptables -A OUTPUT -d 172.16.0.0/12 -m owner --uid-owner www-data -j DROP
iptables -A OUTPUT -d 192.168.0.0/16 -m owner --uid-owner www-data -j DROP

# Block link-local and metadata service
iptables -A OUTPUT -d 169.254.0.0/16 -m owner --uid-owner www-data -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechNodejs

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability3.92%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Issue #150

  • GitHub Pull Request #143

  • GitHub Pull Request #144

  • NetApp Security Advisory ntap-20250117-0010
  • Related CVEs
  • CVE-2022-35949: Node.js Undici SSRF Vulnerability

  • CVE-2026-21711: Node.js Privilege Escalation Vulnerability

  • CVE-2026-21712: Node.js URL Processing DoS Vulnerability

  • CVE-2026-21710: Node.js HTTP DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English