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.
| |
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.
| |
Allocation of Resources Without Limits or Throttlingorg.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.
| |
Incorrect Behavior Orderorg.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.
| |
Improper Validation of Specified Type of Inputorg.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.
| |
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) 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 org.mvnpm:ip-address to version 10.3.1 or higher.
| |
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) 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 org.mvnpm:ip-address to version 10.3.1 or higher.
| |
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) due to insufficient validation in the Address6 class methods isLoopback(), isLinkLocal(), isMulticast(), and isUnspecified(), which classify IPv4-mapped (::ffff:0:0/96) and NAT64 (64:ff9b::/96) addresses by inspecting the IPv6 wrapper instead of the embedded IPv4 address, and which provide no isPrivate() method. An attacker can bypass an application's SSRF or trust-boundary checks and coerce the server into reaching loopback services or cloud metadata endpoints by supplying an IPv4-mapped address such as ::ffff:127.0.0.1 or ::ffff:10.0.0.1, which these methods report as non-loopback and non-private. Exploitation affects only applications that rely on Address6's classification methods for SSRF defense or trust decisions.
How to fix Server-side Request Forgery (SSRF)? Upgrade org.mvnpm:ip-address to version 10.3.1 or higher.
| |