REDHAT-BUG-2510801: SSRF

Published Aug 3, 2026
·
Updated

ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript. Prior to 10.3.1, Address4 accepts an octet written with a leading zero and decodes it as decimal, while the WHATWG URL host parser, inetaton, and getaddrinfo all decode a leading zero as octal. The library and the network stack therefore disagree about which host a string names. new Address4('012.0.0.1') reports correctForm() of 12.0.0.1 and isPrivate() of false, but fetch('http://012.0.0.1/') connects to 10.0.0.1. An application that builds a network trust-boundary decision on these checks, for example a filter intended to block Server-Side Request Forgery, or SSRF, will classify an internal target as external and allow the request. The defect is in the parse gate rather than in any one classifier, so every consumer of Address4 inherits it: isPrivate(), isLoopback(), isLinkLocal(), isCGNAT(), isInSubnet(), isHostInSubnet(), and correctForm() are all computed from the mis-decoded octets. This issue is fixed in version 10.3.1.

Affected Software

1 affected component
npm/ip-address<10.3.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ip-address to a version that resolves this vulnerability.

    Fixed in 10.3.1

Event History

Aug 3, 2026
Data Sourced
via Red Hat·09:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which applications are realistically exposed to this issue?

Applications using npm/ip-address before 10.3.1 are exposed when they use Address4-derived checks to make network trust decisions and then pass the original host string to a network client. SSRF filters and controls that distinguish internal from external addresses are a primary affected use case.

2

What does an attacker need to exploit the mismatch?

An attacker needs to supply an IPv4 address with a leading-zero octet, such as 012.0.0.1, to a workflow that validates the address with ip-address but connects using a URL parser or network stack that interprets leading-zero octets as octal. This can cause a target treated as external by the validation logic to resolve to an internal address for the actual connection.

3

Which ip-address checks should be considered unreliable for leading-zero IPv4 input?

All consumers of Address4 inherit the parsing issue: isPrivate(), isLoopback(), isLinkLocal(), isCGNAT(), isInSubnet(), isHostInSubnet(), and correctForm(). They are computed from decimal-decoded octets even when the downstream URL or network stack interprets those octets differently.

4

What is the available remediation?

Update npm/ip-address to version 10.3.1, which fixes the issue. Until updating, do not rely on Address4 validation alone for security decisions when an address may later be interpreted by a URL parser, inet_aton, or getaddrinfo.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203