Input validation error in Node.js - CVE-2026-58042

 

Input validation error in Node.js - CVE-2026-58042

Published: July 29, 2026 / Updated: July 29, 2026


Vulnerability identifier: #VU140044
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-58042
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to improper input handling in dns.resolveAny() when processing DNS responses containing more than 256 A records. A remote attacker can send or induce such a DNS response to cause a denial of service.

Repeated triggering of this condition can abort the process.


Affected software

Node.js
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
Web and Scripting Module
openSUSE Leap
nodejs22-docs
nodejs22-devel
npm22
corepack22
nodejs22
nodejs22-debugsource
nodejs22-debuginfo
nodejs24-devel
nodejs24-debuginfo
nodejs24-debugsource
nodejs24
npm24
nodejs24-docs

How to mitigate CVE-2026-58042

Install security update from vendor's website.

Node.js - addressed in versions 22.23.2, 24.18.1, 26.5.1
nodejs22-docs - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
nodejs22-devel - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
npm22 - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
corepack22 - update to 22.23.2-150600.13.24.1
nodejs22 - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
nodejs22-debugsource - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
nodejs22-debuginfo - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
nodejs24-devel - update to 24.18.1-150700.15.16.1
nodejs24-debuginfo - update to 24.18.1-150700.15.16.1
nodejs24-debugsource - update to 24.18.1-150700.15.16.1
nodejs24 - update to 24.18.1-150700.15.16.1
npm24 - update to 24.18.1-150700.15.16.1
nodejs24-docs - update to 24.18.1-150700.15.16.1

External References

Related Security Bulletins