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 JavaScript library versions before 10.1.1 contain an XSS vulnerability due to improper neutralization of input during web page generation (CWE-79). Specifically, Address6.group(), Address6.link(), and AddressError.parseMessage can include unescaped attacker-controlled content in their HTML output. If an application uses these methods and renders their output directly as HTML (e.g., via innerHTML), it may allow execution of malicious scripts in the user's browser. The vulnerability is fixed in version 10.1.1. Exploitation depends on application-level rendering practices. The CVSS v4.0 base score is 5.3 (medium severity).
Potential Impact
Successful exploitation can lead to cross-site scripting attacks, allowing an attacker to execute arbitrary scripts in the context of the victim's browser. This can result in disclosure of sensitive information such as cookies or session tokens, unauthorized actions performed on behalf of the user, and potential compromise of user accounts. The vulnerability does not directly allow code execution on the server or affect availability. Exploitation requires that the vulnerable library output is rendered as HTML without proper escaping.
Mitigation Recommendations
A fix is available in ip-address version 10.1.1. Users should upgrade to version 10.1.1 or later to remediate this vulnerability. The vendor advisory notes that mitigation options other than upgrading may not meet security criteria. Applications should ensure that any output from Address6 methods or AddressError.parseMessage is properly escaped before rendering as HTML. Red Hat has released security updates including this fix in nodejs22 packages for Red Hat Enterprise Linux 10.0 Extended Update Support.
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
beaugunderson
ip-address
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
The ip-address JavaScript library versions before 10.1.1 contain an XSS vulnerability due to improper neutralization of input during web page generation (CWE-79). Specifically, Address6.group(), Address6.link(), and AddressError.parseMessage can include unescaped attacker-controlled content in their HTML output. If an application uses these methods and renders their output directly as HTML (e.g., via innerHTML), it may allow execution of malicious scripts in the user's browser. The vulnerability is fixed in version 10.1.1. Exploitation depends on application-level rendering practices. The CVSS v4.0 base score is 5.3 (medium severity).
Potential Impact
Successful exploitation can lead to cross-site scripting attacks, allowing an attacker to execute arbitrary scripts in the context of the victim's browser. This can result in disclosure of sensitive information such as cookies or session tokens, unauthorized actions performed on behalf of the user, and potential compromise of user accounts. The vulnerability does not directly allow code execution on the server or affect availability. Exploitation requires that the vulnerable library output is rendered as HTML without proper escaping.
Mitigation Recommendations
A fix is available in ip-address version 10.1.1. Users should upgrade to version 10.1.1 or later to remediate this vulnerability. The vendor advisory notes that mitigation options other than upgrading may not meet security criteria. Applications should ensure that any output from Address6 methods or AddressError.parseMessage is properly escaped before rendering as HTML. Red Hat has released security updates including this fix in nodejs22 packages for Red Hat Enterprise Linux 10.0 Extended Update Support.
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
- 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: 08/14/2026, 15:39:29 UTC
Last updated: 09/14/2026, 10:01:30 UTC
Views: 113
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.