org.mvnpm:ip-address@10.5.0

  • latest version

    10.7.5

  • latest non vulnerable version

  • first published

    1 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm: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
    Regular Expression Denial of Service (ReDoS)

    org.mvnpm: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 Regular Expression Denial of Service (ReDoS) via the Address6 constructor in src/ipv6.ts, where the RE_ZONE_STRING regular expression (/%.*$/) is applied to strip an IPv6 zone identifier before enforcing the 45-character limit. Because the pattern has no leading anchor and . does not cross line terminators, every % character in the input becomes a candidate start position that the engine scans forward until it fails at a newline, producing O(N²) backtracking. An attacker can supply a string of % characters followed by a newline to Address6.isValid() and cause processing time to grow quadratically - measured at 13 ms for 5,461 characters, 3.9 s for 100 KB, and 27 s for 256 KB of input.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade org.mvnpm:ip-address to version 10.7.4 or higher.

    [,10.7.4)
    • M
    Server-side Request Forgery (SSRF)

    org.mvnpm: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) via isPrivate() in src/ipv6.ts, which fails to classify addresses in the RFC 8215 NAT64 local-use range 64:ff9b:1::/48 as private. An attacker who knows or guesses the operator's NAT64 prefix can supply an address in this range that isPrivate() incorrectly reports as globally routable, bypassing any access controls that rely on that check to block internal traffic.

    Note: This is only exploitable if the server's network runs a NAT64 translator on a prefix inside 64:ff9b:1::/48 and the attacker knows or can guess the prefix length.

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

    Upgrade org.mvnpm:ip-address to version 10.7.0 or higher.

    [10.2.0,10.7.0)
    • M
    Allocation of Resources Without Limits or Throttling

    org.mvnpm: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 Allocation of Resources Without Limits or Throttling via the Address6.isValid() method (and the Address4 constructor) when parsing an oversized input string. The bad-character diagnostic wraps every offending character in an HTML <span> element, so an N-byte string of punctuation produces approximately 106N bytes of output and triggers a synchronous String.replace over the entire result. An 8 MiB input takes roughly 529 ms and 895 MB of memory, a 16 MiB input causes a RangeError by exceeding V8's maximum string length, and a 32 MiB input causes V8 to abort the process entirely with a fatal invalid-size error.

    Note: Material impact occurs only when an application accepts a very large attacker-controlled field and passes it to Address6 or Address4 parsing without an earlier length bound.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:ip-address to version 10.7.1 or higher.

    [,10.7.1)
    • M
    Incorrect Behavior Order

    org.mvnpm: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 Incorrect Behavior Order via the isLinkLocal() method, which incorrectly compared only the first 64 bits of an IPv6 address against the fixed pattern fe80:0:0:0, effectively recognising only fe80::/64 as link-local. Addresses within the full fe80::/10 range defined by RFC 4291 §2.4 - such as fe81::1, febf::1, or fe80:0:0:1::1 - are incorrectly classified as non-link-local, causing the library to disagree with itself because getType() and getScope() already matched the correct /10 subnet. An attacker can exploit this inconsistency to bypass link-local address checks in applications that rely on isLinkLocal() for access control or routing decisions.

    How to fix Incorrect Behavior Order?

    Upgrade org.mvnpm:ip-address to version 10.7.0 or higher.

    [,10.7.0)
    • M
    Improper Validation of Specified Type of Input

    org.mvnpm: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 Improper Validation of Specified Type of Input via isHostInSubnet() (and isInSubnet() which delegates to it), which compares masked binary strings without first verifying that both addresses belong to the same address family. Because Address4 pads its binary representation to 32 bits and Address6 pads to 128 bits, leading bit sequences can coincide across families, causing an IPv6 address to be incorrectly reported as contained within an IPv4 subnet and vice versa (for example, a00::1 is evaluated as inside 10.0.0.0/8). An attacker who controls an IP address value passed to a subnet membership check can bypass trust-boundary decisions such as SSRF allow/deny filters by supplying an address of the opposite family.

    How to fix Improper Validation of Specified Type of Input?

    Upgrade org.mvnpm:ip-address to version 10.7.1 or higher.

    [,10.7.1)