CVE-2026-42338
Description
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.
How to fix
- beaugunderson ip-address10.1.1 or later
- ip-address10.1.1 or later
- access.redhat.com/errata/RHSA-2026:39246
- access.redhat.com/errata/RHSA-2026:35842
- access.redhat.com/errata/RHSA-2026:35841
- access.redhat.com/errata/RHSA-2026:41947
- access.redhat.com/errata/RHSA-2026:39868
- access.redhat.com/errata/RHSA-2026:52399
- access.redhat.com/errata/RHSA-2026:35892
- access.redhat.com/errata/RHSA-2026:35891
- access.redhat.com/errata/RHSA-2026:57590
- access.redhat.com/errata/RHSA-2026:66545
- access.redhat.com/errata/RHSA-2026:66488
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| beaugunderson ip-address | v < 10.1.1 | 10.1.1 |
| ip-addressnpm | v < 10.1.1 | 10.1.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.