REDHAT-BUG-2476810: High severity npm/ip-address vulnerability

Published May 12, 2026
·
Updated

ip-address is a library for parsing and manipulating IPv4 and IPv6 addresses in JavaScript. Prior to 10.1.1, Address6.group() and Address6.link() do not HTML-escape attacker-controlled content before embedding it in the HTML strings they return, and AddressError.parseMessage (emitted by the Address6 constructor for invalid input) can contain unescaped attacker-controlled content in one branch. An application that (1) passes untrusted input to Address6 and (2) renders the output of these methods, or the thrown error's parseMessage, as HTML (e.g. via innerHTML) is vulnerable to cross-site scripting. This vulnerability is fixed in 10.1.1.

Affected Software

1 affected component
npm/ip-address<10.1.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.1.1

Event History

May 12, 2026
Data Sourced
via Red Hat·09:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What conditions are required for exploitation?

An application must pass untrusted input to Address6 and render the result of Address6.group(), Address6.link(), or a thrown error's parseMessage as HTML, such as through innerHTML. If those values are not rendered as HTML, the described cross-site scripting path is not present.

2

Are applications using the library's default behavior automatically exposed?

No. Exposure depends on application behavior: attacker-controlled input must reach Address6 and one of the affected returned or error values must be inserted into an HTML-rendering context without escaping.

3

Which versions are affected and what version contains the fix?

Versions prior to 10.1.1 are affected. The issue is fixed in version 10.1.1.

4

What can be done if upgrading is not immediately possible?

Do not insert output from Address6.group(), Address6.link(), or AddressError.parseMessage into HTML contexts. Render it as text or ensure attacker-controlled content is HTML-escaped before insertion.

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