Cross-site Scripting (XSS) Affecting nodejs:22/nodejs-libs package, versions <1:22.23.1-1.module+el9.8.0+24457+996af7aa


Severity

Recommended
0.0
high
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.47% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL9-NODEJS-17307013
  • published11 Jun 2026
  • disclosed12 May 2026

Introduced: 12 May 2026

CVE-2026-42338  (opens in a new tab)
CWE-79  (opens in a new tab)

How to fix?

Upgrade RHEL:9 nodejs:22/nodejs-libs to version 1:22.23.1-1.module+el9.8.0+24457+996af7aa or higher.
This issue was patched in RHSA-2026:35892.

NVD Description

Note: Versions mentioned in the description apply only to the upstream nodejs:22/nodejs-libs package and not the nodejs:22/nodejs-libs package as distributed by RHEL. See How to fix? for RHEL:9 relevant fixed versions and status.

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

version 3.1