Skip to content

← Public intelligence

npm package

ip

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

1 actionable advisory, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. UnratednpmAmendedPublished

    NPM IP package incorrectly identifies some private IP addresses as public

    CVE-2023-42282 · GHSA-78xj-cgh5-2h22

    Affected
    • npm ip >= 2.0.0, <= 2.0.0; < 1.1.9
    Fixed in
    1.1.92.0.1· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 2.0.1 or 1.1.9 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →