org.mvnpm:ip-address@10.7.2

  • 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)