Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.5%top 62%

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-79
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

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: 07/30/2026, 21:57:23 UTC

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.

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
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 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