CVE-2026-58040: TLS Hostname Verification Bypass in Node.js HTTPS Agent Session Reuse
CVE-2026-58040 is a hostname-verification bypass in Node.js HTTPS Agent TLS session reuse, resulting from an incomplete fix for CVE-2026-48934. Reusing a TLS session across different identity policies can skip hostname verification, allowing a connection to be accepted without enforcing the applicable peer-identity checks. The vulnerability affects Node.js 22.x, 24.x, and 26.x release lines and can expose confidential information.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can bypass TLS hostname verification and compromise the confidentiality of information exchanged over an affected HTTPS connection. SUSE rates the vulnerability Moderate, with CVSS v3.1 6.3 (AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N), indicating high attack complexity, low required privileges, no user interaction, and high confidentiality impact. Integrity and availability impacts are not established.
Mitigation
If you can’t patch tonight, do this now.
Until patched, minimize HTTPS/TLS session reuse across distinct hostname or identity-policy contexts. Restrict untrusted network paths to HTTPS endpoints and apply network segmentation and egress controls to reduce opportunities for on-path interference. No specific vendor workaround is identified.
Remediation
Patch, then assume compromise.
Upgrade to Node.js 22.23.2, 24.18.1, or 26.5.1 or a later fixed release in the corresponding release line. For distribution-managed installations, install the applicable vendor security update, including associated runtime packages. Distribution fixes include Debian 12 package version 18.20.4+dfsg-1~deb12u3 under DLA-4809-1 and RHEL 10 nodejs26 version 26.12.1-3.el10_3 under RHSA-2026:98619.
Exploits
No validated public exploits yet. Hidden: 3 rejected by Mallory's analysis as not a working exploit.
Frequently asked questions
- Is CVE-2026-58040 exploited in the wild?
- As of Nov 27, 2026, Mallory has no reports of CVE-2026-58040 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-58040?
- As of Nov 27, 2026, Mallory has found no public exploit for CVE-2026-58040.
- Is there a patch for CVE-2026-58040?
- Upgrade to Node.js 22.23.2, 24.18.1, or 26.5.1 or a later fixed release in the corresponding release line. For distribution-managed installations, install the applicable vendor security update, including associated runtime packages.
- How severe is CVE-2026-58040?
- CVE-2026-58040 has a CVSS v3 score of 6.3 (Medium) and an EPSS score of 0.30% (15th percentile) as of Nov 27, 2026.
Recent activity
25 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.