Improper Certificate Validation in Node.js - CVE-2026-58040

 

Improper Certificate Validation in Node.js - CVE-2026-58040

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


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

Vulnerability details

The vulnerability allows a remote attacker to bypass hostname verification.

The vulnerability exists due to improper certificate validation in the Node.js HTTPS Agent when reusing TLS sessions across identity policies. A remote attacker can trigger TLS session reuse to bypass hostname verification.

This issue was identified as an incomplete fix for CVE-2026-48934.


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

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