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
CVE-2026-42338 affects the ip-address library for JavaScript, specifically versions before 10.1.1. The vulnerability arises because Address6.group() and Address6.link() methods do not HTML-escape attacker-controlled content before embedding it in returned HTML strings. Additionally, AddressError.parseMessage, used by the Address6 constructor for invalid input, can include unescaped attacker-controlled content. If an application passes untrusted input to Address6 and renders these outputs as HTML, it may be exploited for cross-site scripting. The vulnerability is resolved in version 10.1.1.
Potential Impact
The vulnerability allows an attacker to inject malicious HTML or scripts into web pages if the application renders the vulnerable method outputs or error messages as HTML. This can lead to cross-site scripting attacks, potentially compromising user interactions with the affected application. The CVSS 4.0 base score is 5.3, indicating a medium severity impact with network attack vector, low complexity, no privileges required, and user interaction needed.
Mitigation Recommendations
A fix is available in ip-address version 10.1.1. Users and developers should upgrade to version 10.1.1 or later to remediate this vulnerability. The vendor advisory from Red Hat confirms this update and provides patched packages for affected distributions. Until upgraded, applications should avoid rendering the outputs of Address6.group(), Address6.link(), or AddressError.parseMessage as HTML without proper escaping.
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.
CVSS v4.0
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42338 affects the ip-address library for JavaScript, specifically versions before 10.1.1. The vulnerability arises because Address6.group() and Address6.link() methods do not HTML-escape attacker-controlled content before embedding it in returned HTML strings. Additionally, AddressError.parseMessage, used by the Address6 constructor for invalid input, can include unescaped attacker-controlled content. If an application passes untrusted input to Address6 and renders these outputs as HTML, it may be exploited for cross-site scripting. The vulnerability is resolved in version 10.1.1.
Potential Impact
The vulnerability allows an attacker to inject malicious HTML or scripts into web pages if the application renders the vulnerable method outputs or error messages as HTML. This can lead to cross-site scripting attacks, potentially compromising user interactions with the affected application. The CVSS 4.0 base score is 5.3, indicating a medium severity impact with network attack vector, low complexity, no privileges required, and user interaction needed.
Mitigation Recommendations
A fix is available in ip-address version 10.1.1. Users and developers should upgrade to version 10.1.1 or later to remediate this vulnerability. The vendor advisory from Red Hat confirms this update and provides patched packages for affected distributions. Until upgraded, applications should avoid rendering the outputs of Address6.group(), Address6.link(), or AddressError.parseMessage as HTML without proper escaping.
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
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-42338","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33155","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33160","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33163","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33173","vendor":"Red Hat"},{"url":"https://access.redhat.com/errata/RHSA-2026:33183","vendor":"Red Hat"}]
Threat ID: 6a038bd7cbff5d861016494d
Added to database: 05/12/2026, 20:21:43 UTC
Last enriched: 07/30/2026, 21:57:23 UTC
Last updated: 07/31/2026, 21:26:44 UTC
Views: 83
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.