CVE-2026-42338: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in beaugunderson ip-address
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.
AI Analysis
Technical Summary
The ip-address library for JavaScript, used for parsing and manipulating IPv4 and IPv6 addresses, contains an XSS vulnerability in versions before 10.1.1. Specifically, the Address6.group() and Address6.link() methods fail to HTML-escape attacker-controlled content before returning HTML strings, and the AddressError.parseMessage can include unescaped attacker input in error messages. If an application passes untrusted input to Address6 and renders these outputs directly into HTML, it can lead to cross-site scripting. The vulnerability is addressed in version 10.1.1 by properly escaping such content.
Potential Impact
Exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript in the context of the vulnerable application if it renders the affected outputs as HTML. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection. However, the vulnerability requires the application to both pass untrusted input to Address6 and render the output as HTML without proper sanitization. There are no known exploits in the wild as of the publication date.
Mitigation Recommendations
Upgrade the ip-address library to version 10.1.1 or later, where this vulnerability is fixed by proper HTML escaping of attacker-controlled content. Until upgraded, avoid rendering the outputs of Address6.group(), Address6.link(), or AddressError.parseMessage directly as HTML, or ensure proper HTML escaping/sanitization is applied before rendering. Patch status is not explicitly confirmed in the advisory, but the fix is included in version 10.1.1.
CVE-2026-42338: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in beaugunderson ip-address
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The ip-address library for JavaScript, used for parsing and manipulating IPv4 and IPv6 addresses, contains an XSS vulnerability in versions before 10.1.1. Specifically, the Address6.group() and Address6.link() methods fail to HTML-escape attacker-controlled content before returning HTML strings, and the AddressError.parseMessage can include unescaped attacker input in error messages. If an application passes untrusted input to Address6 and renders these outputs directly into HTML, it can lead to cross-site scripting. The vulnerability is addressed in version 10.1.1 by properly escaping such content.
Potential Impact
Exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript in the context of the vulnerable application if it renders the affected outputs as HTML. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection. However, the vulnerability requires the application to both pass untrusted input to Address6 and render the output as HTML without proper sanitization. There are no known exploits in the wild as of the publication date.
Mitigation Recommendations
Upgrade the ip-address library to version 10.1.1 or later, where this vulnerability is fixed by proper HTML escaping of attacker-controlled content. Until upgraded, avoid rendering the outputs of Address6.group(), Address6.link(), or AddressError.parseMessage directly as HTML, or ensure proper HTML escaping/sanitization is applied before rendering. Patch status is not explicitly confirmed in the advisory, but the fix is included in version 10.1.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-26T13:26:14.514Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a038bd7cbff5d861016494d
Added to database: 5/12/2026, 8:21:43 PM
Last enriched: 5/12/2026, 8:39:42 PM
Last updated: 5/13/2026, 4:49:20 AM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.