cve.bz

CVE-2026-42338 beaugunderson ip-address: Cross-site Scripting

5.3 mediumExploit referenceEPSS 0.5%Fix available

Medium (5.3) in beaugunderson ip-address. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in ip-address 10.1.1.

On this page
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.

Severity

CVSS 4.0

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

CVSS 3.1

6.1 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 41st percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-05-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-79 Improper Neutralization of Input During Web Page Generation (Cross-site Scripting)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42338 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42338?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42338?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42338 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
beaugunderson:ip-addressbefore 10.1.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-v2v4-37r5-5v8gnpmip-address<10.1.110.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13node-ip-addressno fix listedDEBIAN-CVE-2026-42338
Debian14node-ip-address10.2.0-2DEBIAN-CVE-2026-42338
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morenode-ip-addressno fix listedUBUNTU-CVE-2026-42338
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:22.23.1-1.module+el8.10.0+24500+8eb51621RHSA-2026:41947
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:24.18.0-1.module+el8.10.0+24481+7a71fac8RHSA-2026:39868
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.1-1.module+el8.10.0+24500+8eb51621RHSA-2026:41947
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.0.3-1.module+el8.10.0+24190+49a46c75RHSA-2026:39868
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-6.module+el8.10.0+24190+49a46c75RHSA-2026:39868
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-6.module+el8.10.0+24500+8eb51621RHSA-2026:41947
Red Hatenterprise_linux:8::appstreamnpm1:10.9.8-1.22.23.1.1.module+el8.10.0+24500+8eb51621RHSA-2026:41947
Red Hatenterprise_linux:8::appstreamnpm1:11.16.0-1.24.18.0.1.module+el8.10.0+24481+7a71fac8RHSA-2026:39868
Red Hatenterprise_linux:8::appstreamv8-12.4-devel3:12.4.254.21-1.22.23.1.1.module+el8.10.0+24500+8eb51621RHSA-2026:41947
Red Hatenterprise_linux:8::appstreamv8-13.6-devel3:13.6.233.17-1.24.18.0.1.module+el8.10.0+24481+7a71fac8RHSA-2026:39868
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:22.23.1-1.module+el9.8.0+24457+996af7aaRHSA-2026:35892
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:24.18.0-1.module+el9.8.0+24456+b244c3b4RHSA-2026:35891
20 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 morenodejs2020.20.2-150500.11.30.1SUSE-SU-2026:3930-1
SUSELinux Enterprise Module for Web and Scripting 15 SP7nodejs2222.23.0-150700.3.12.1SUSE-SU-2026:2695-1
SUSELinux Enterprise Module for Web and Scripting 15 SP7nodejs2424.17.0-150700.15.11.1SUSE-SU-2026:2633-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6nodejs2020.20.2-150600.3.21.1SUSE-SU-2026:3929-1
SUSELinux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6nodejs2222.23.0-150600.13.18.1SUSE-SU-2026:2647-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0nodejs2222.23.0-160000.1.1SUSE-SU-2026:22368-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0nodejs2424.18.0-160000.1.1SUSE-SU-2026:22565-1
openSUSELeap 16.0nodejs2222.23.0-160000.1.1openSUSE-SU-2026:21058-1
openSUSELeap 16.0nodejs2424.18.0-160000.1.1openSUSE-SU-2026:21236-1
openSUSETumbleweednodejs2424.17.0-1.1openSUSE-SU-2026:11121-1
AlmaLinux8nodejs, nodejs-docs, nodejs-libs and 2 more1:22.23.1-1.module_el8.10.0+4231+1bf2f855ALSA-2026:41947
AlmaLinux8nodejs, nodejs-docs, nodejs-libs and 2 more1:24.18.0-1.module_el8.10.0+4228+2938bc94ALSA-2026:39868
AlmaLinux8nodejs-nodemon3.0.1-1.module_el8.10.0+3956+47c9ee9fALSA-2026:41947
AlmaLinux8nodejs-nodemon3.0.3-1.module_el8.10.0+4061+f8ceeab9ALSA-2026:39868
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-6.module_el8.10.0+4086+70facd4aALSA-2026:39868
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-6.module_el8.10.0+4158+e796f37fALSA-2026:41947
AlmaLinux8npm1:10.9.8-1.22.23.1.1.module_el8.10.0+4231+1bf2f855ALSA-2026:41947
AlmaLinux8npm1:11.16.0-1.24.18.0.1.module_el8.10.0+4228+2938bc94ALSA-2026:39868
AlmaLinux8v8-12.4-devel3:12.4.254.21-1.22.23.1.1.module_el8.10.0+4231+1bf2f855ALSA-2026:41947
AlmaLinux8v8-13.6-devel3:13.6.233.17-1.24.18.0.1.module_el8.10.0+4228+2938bc94ALSA-2026:39868
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 2 more1:22.23.1-1.module_el9.8.0+276+8b329b47ALSA-2026:35892
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 2 more1:24.18.0-1.module_el9.8.0+277+61fc613eALSA-2026:35891
11 more for AlmaLinux in the JSON.
Rocky Linux8nodejs1:24.18.0-1.module+el8.10.0+40252+a58646bcRLSA-2026:39868
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1666+930e28e8RLSA-2026:41947
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1667+4a788d89RLSA-2026:41947
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1823+b5789597RLSA-2026:41947
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1824+532140eeRLSA-2026:41947
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1924+614dc87fRLSA-2026:41947
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1935+d3cbe60fRLSA-2026:41947
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1988+437f3d23RLSA-2026:41947
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.10.0+1989+e60144d9RLSA-2026:41947
Rocky Linux8nodejs-nodemon0:3.0.1-1.module+el8.9.0+1760+903d54b9RLSA-2026:41947
Rocky Linux8nodejs-nodemon0:3.0.3-1.module+el8.10.0+2084+ab509703RLSA-2026:39868
Rocky Linux8nodejs-packaging0:2021.06-6.module+el8.10.0+40048+6d99f608RLSA-2026:39868 RLSA-2026:41947
11 more for Rocky Linux in the JSON.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's 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.

Red Hat's 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.

ProductPackageStateAdvisory
Red Hat AMQ Broker 7.13.6ip-addressFixed 2026-09-10RHSA-2026:66545
Red Hat AMQ Broker 7.14.1ip-addressFixed 2026-09-10RHSA-2026:66488
Red Hat Enterprise Linux 10nodejs24-1:24.18.0-1.el10_2Fixed 2026-07-06RHSA-2026:35841
Red Hat Enterprise Linux 10nodejs22-1:22.23.1-2.el10_2Fixed 2026-07-06RHSA-2026:35842
Red Hat Enterprise Linux 10rh-podman-desktop-0:1.1.2-1.el10_2Fixed 2026-08-20RHSA-2026:57590
Red Hat Enterprise Linux 10.0 Extended Update Supportnodejs22-1:22.23.1-2.el10_0Fixed 2026-07-14RHSA-2026:39246
Red Hat Enterprise Linux 8nodejs:24-8100020260630152626.6d880403Fixed 2026-07-15RHSA-2026:39868
Red Hat Enterprise Linux 8nodejs:22-8100020260703140402.6d880403Fixed 2026-07-20RHSA-2026:41947
Red Hat Enterprise Linux 9nodejs:24-9080020260626074955.rhel9Fixed 2026-07-06RHSA-2026:35891
Red Hat Enterprise Linux 9nodejs:22-9080020260626075442.rhel9Fixed 2026-07-06RHSA-2026:35892
Confidential Compute Attestationopenshift-sandboxed-containers/osc-pccsWill not fix
Cryostat 4cryostat/cryostat-openshift-console-plugin-rhel9Not affected
Cryostat 4cryostat-openshift-console-plugin-npmNot affected
Exploit Intelligenceexploit-intelligence-tech-preview/vulnerability-analysis-rhel9Affected
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Will not fix
OpenShift Pipelinesopenshift-pipelines/pipelines-console-plugin-rhel8Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-console-plugin-rhel9Affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/console-rhel9Not affected
Red Hat build of Apache Camel for Spring Boot 4ip-addressNot affected
Red Hat build of Apache Camel - HawtIO 4ip-addressWill not fix
72 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42338.

Attack patterns (CAPEC)

  • CAPEC-63 Cross-Site Scripting (XSS) Likelihood: High · Severity: Very High
  • CAPEC-85 AJAX Footprinting Likelihood: High · Severity: Low
  • CAPEC-209 XSS Using MIME Type Mismatch Severity: Medium
  • CAPEC-588 DOM-Based XSS Likelihood: High · Severity: Very High
  • CAPEC-591 Reflected XSS Likelihood: High · Severity: Very High
  • CAPEC-592 Stored XSS Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON