Low

NPM IP package incorrectly identifies some private IP addresses as public

  • Disclosed: 08.02.2024
  • Updated: 11.10.2026 10:22

The isPublic() function in the NPM package ip doesn't correctly identify certain private IP addresses in uncommon formats such as 0x7F.1 as private. Instead, it reports them as public by returning true. This can lead to security issues such as Server-Side Request Forgery (SSRF) if isPublic() is used to protect sensitive code paths when passed user input. Versions 1.1.9 and 2.0.1 fix the issue.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package ip >= 2.0.0, < 2.0.1, < 1.1.9 2.0.1, 1.1.9

References

CVSS score -
Weakness (CWE)
CWE-918
Platform
npm
Package
ip
Disclosed
08.02.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-78xj-cgh5-2h22 - CC BY 4.0

Vulnerability history: ip

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
02.2024 06.2024
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • High 1
  • Low 1

Disclosures per year

  1. 2024: 2
  2. 2025: 0
  3. 2026: 0
  1. High · 8.1 CVE-2024-29415 <= 2.0.1 no fix
  2. NPM IP package incorrectly identifies some private IP addresses as public this entry
    Low CVE-2023-42282 >= 2.0.0, < 2.0.1, < 1.1.9 2.0.1, 1.1.9

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.