Skip to main content
EPSS 0.5%top 61%

CVE-2026-42338: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in beaugunderson ip-address

0
Medium
VulnerabilityCVE-2026-42338cvecve-2026-42338cwe-79gcve
Published: 05/12/2026 (05/12/2026, 19:43:16 UTC)
Source: CVE Database V5
Vendor/Project: beaugunderson
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

beaugunderson

ip-address

Affected versions
<10.1.1
ip-address
pkg:npm/ip-address
Affected versions
<10.1.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/14/2026, 15:39:29 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses