Critical SSRF Vulnerability in node-ip Package

node-ip Updated 03 Oct 2025

Summary

19/02/2024
N/A
Yes i
Unrated
Not published

USN-6643-1: node-ip vulnerability. Affects node-ip versions < 1.1.5-1ubuntu0.1~esm1. Fixed in 1.1.5-1ubuntu0.1~esm1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The node-ip package is a popular library used in Node.js applications for handling IP addresses. It provides functionalities to validate and manipulate IP addresses, distinguishing between public and private addresses. This package is widely utilized in various applications to ensure proper network communication and security. However, a recent vulnerability has been discovered that compromises its ability to accurately differentiate between private and public IP addresses, potentially exposing applications to security risks.

Vulnerability Detail

Emre Durmaz discovered that the node-ip package incorrectly distinguished between private and public IP addresses. This flaw allows a remote attacker to exploit the vulnerability and perform Server-Side Request Forgery (SSRF) attacks. SSRF attacks can enable attackers to send unauthorized requests from the server to internal resources, leading to data exposure or further exploitation of the server's network.

How To Fix

Minimum fixed version

1.1.5-1ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-ip

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider implementing network-level controls to restrict access to sensitive internal resources. Additionally, validate and sanitize all incoming requests to ensure they do not contain malicious payloads that could exploit this vulnerability.

Conclusion

The node-ip package has a critical vulnerability that could allow remote attackers to perform SSRF attacks. It is crucial for users of this package to update to the patched versions provided for their respective Ubuntu distributions. Implementing workarounds and using monitoring tools like Vulert can further enhance security.

See every vulnerability recorded for node-ip →

Share this vulnerability

FAQ

The node-ip package is a Node.js library used for handling and validating IP addresses, providing functionalities to distinguish between public and private addresses.

Server-Side Request Forgery (SSRF) is a security vulnerability that allows an attacker to send unauthorized requests from a vulnerable server to internal resources.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

If exploited, this vulnerability can lead to unauthorized access to internal services, data exposure, and further exploitation of the server's network.

Using tools like Vulert, which monitors and alerts for open-source vulnerabilities in real-time, can help you stay informed about potential risks in your software.

Related vulnerabilities

Recent vulnerabilities recorded for node-ip.

How To Fix

Minimum fixed version

1.1.5-1ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade node-ip

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback