ip-address@10.2.1

A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

  • latest version

    10.4.0

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    6 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the ip-address package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Server-side Request Forgery (SSRF)

    ip-address is an A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the isInSubnet function. An attacker can bypass network trust-boundary checks by appending a CIDR suffix with a shorter prefix (such as /0) to an internal address, causing classification methods to incorrectly treat internal addresses as external. This allows requests to internal resources to be permitted when they should be blocked.

    Note: This is only exploitable if an application accepts a bare address string with a CIDR suffix and passes it directly to the constructor before classification, such as in allow/deny fields, webhook targets, or proxy destinations taken as plain hosts rather than parsed from a URL.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade ip-address to version 10.2.2 or higher.

    >=10.1.1 <10.2.2
    • M
    Server-side Request Forgery (SSRF)

    ip-address is an A library for parsing IPv4 and IPv6 IP addresses in node and the browser.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through improper handling of IPv4 addresses with leading zeros in the Address4. An attacker can bypass network trust-boundary checks by submitting specially crafted IP addresses that are interpreted differently by the library and the underlying network resolver, potentially allowing unauthorized access to internal resources.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade ip-address to version 10.3.1 or higher.

    <10.3.1