CVE Database›Document archive›CVE-2026-42338

CVE-2026-42338

ip-address: ip-address: Cross-site scripting via improper HTML escaping of untrusted input

Loading…

Severity

Important

Red Hat Product Security

8.1

CVSS 3.1

Review impact separately from score.

Published · May 13, 2026

Updated · November 3, 2026

Description

A flaw was found in ip-address, a JavaScript library for parsing and manipulating IPv4 and IPv6 addresses. This vulnerability allows a remote attacker to perform cross-site scripting (XSS) by providing untrusted input to the Address6 constructor. When an application renders the output of Address6.group(), Address6.link(), or the AddressError.parseMessage as HTML without proper escaping, the attacker-controlled content can be executed in the user's browser.

Statement

This vulnerability in the ip-address JavaScript library is rated as Important. It allows for cross-site scripting (XSS) when an application processes untrusted input through the Address6 constructor and subsequently renders the unescaped output of methods like Address6.group(), Address6.link(), or AddressError.parseMessage directly as HTML. While the library itself is affected, exploitation is contingent on specific application-level rendering practices that may not be common in Red Hat products.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

CVSS / CWE

CVSS 3.1 · 8.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

CWE-79 · Improper Neutralization of Input During Web Page Generation