GHSA-78xj-cgh5-2h22

    Dashboard / Vulnerabilities / GHSA-78xj-cgh5-2h22

    GHSA-78xj-cgh5-2h22

    Published: 8 Feb 2024Last Modified: 10 Sept 2026

    Summary: NPM IP package incorrectly identifies some private IP addresses as public

    Details: 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 packages

    Package

    Name: ip

    Purl: pkg:npm/ip

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 2.0.0
    Fixed -2.0.1

    Affected versions

    2.0.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-78xj-cgh5-2h22 | CVE-DB