cve.bz

CVE-2026-58040 nodejs node

6.3 mediumEPSS 0.3%

Medium (6.3) in nodejs node. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
An incomplete fix has been identified in Node.js: HTTPS Agent TLS session reuse skips hostname verification across identity policies (incomplete fix of CVE-2026-48934). This vulnerability affects Node.js **22.x**, **24.x**, and **26.x**.

Severity

CVSS 3.0

6.3 medium
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 25th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-07-30. 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-297 Improper Validation of Certificate with Host Mismatch
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-58040 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-58040?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-58040?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-58040 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 CNA's record in the CVE List.

ProductAffected
nodejs nodefrom 22.23.1 through 22.23.1
nodejs nodefrom 24.18.0 through 24.18.0
nodejs nodefrom 26.5.0 through 26.5.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12nodejs18.20.4+dfsg-1~deb12u3DEBIAN-CVE-2026-58040 DLA-4809-1
Debian14nodejs24.19.0+dfsg+~cs24.13.3-1DEBIAN-CVE-2026-58040
Ubuntu24.04:LTS, 26.04:LTS, 26.10 and 5 morenodejsno fix listedUBUNTU-CVE-2026-58040
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:22.23.2-1.module+el8.10.0+24710+c2e9b41fRHSA-2026:62219
Red Hatenterprise_linux:8::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:24.19.0-1.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.1.14-2.module+el8.10.0+24710+c2e9b41fRHSA-2026:62219
Red Hatenterprise_linux:8::appstreamnodejs-nodemon0:3.1.14-2.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-6.module+el8.10.0+24710+c2e9b41fRHSA-2026:62219
Red Hatenterprise_linux:8::appstreamnodejs-packaging, nodejs-packaging-bundler0:2021.06-6.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:8::appstreamnpm1:10.9.8-1.22.23.2.1.module+el8.10.0+24710+c2e9b41fRHSA-2026:62219
Red Hatenterprise_linux:8::appstreamnpm1:11.17.0-1.24.19.0.1.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:8::appstreamv8-12.4-devel3:12.4.254.21-1.22.23.2.1.module+el8.10.0+24710+c2e9b41fRHSA-2026:62219
Red Hatenterprise_linux:8::appstreamv8-13.6-devel3:13.6.233.17-1.24.19.0.1.module+el8.10.0+24711+b610b202RHSA-2026:62583
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:22.23.2-1.module+el9.8.0+24709+804d6b5bRHSA-2026:61383
Red Hatenterprise_linux:9::appstreamnodejs, nodejs-docs, nodejs-libs and 5 more1:24.19.0-1.module+el9.8.0+24708+e71d2e1dRHSA-2026:61386
30 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 5 morenodejs1818.20.8-150400.9.39.1SUSE-SU-2026:4261-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 morenodejs1616.20.2-150400.3.42.1SUSE-SU-2026:4355-1
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.2-150700.3.18.1SUSE-SU-2026:3557-1
SUSELinux Enterprise Module for Web and Scripting 15 SP7nodejs2424.18.1-150700.15.16.1SUSE-SU-2026:3520-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5nodejs1818.20.8-8.44.1SUSE-SU-2026:4248-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.2-150600.13.24.1SUSE-SU-2026:3521-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0nodejs2222.23.2-160000.1.1SUSE-SU-2026:23130-1 SUSE-SU-2026:23154-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0nodejs2424.18.1-160000.1.1SUSE-SU-2026:23131-1 SUSE-SU-2026:23155-1
openSUSELeap 16.0nodejs2222.23.2-160000.1.1openSUSE-SU-2026:21545-1
openSUSELeap 16.0nodejs2424.18.1-160000.1.1openSUSE-SU-2026:21546-1
openSUSETumbleweednodejs2424.18.1-1.1openSUSE-SU-2026:11439-1
openSUSETumbleweednodejs2626.5.1-1.1openSUSE-SU-2026:11440-1
AlmaLinux8nodejs, nodejs-docs, nodejs-libs and 2 more1:22.23.2-1.module_el8.10.0+4265+75d28086ALSA-2026:62219
AlmaLinux8nodejs, nodejs-docs, nodejs-libs and 2 more1:24.19.0-1.module_el8.10.0+4268+8e07aa5aALSA-2026:62583
AlmaLinux8nodejs-nodemon3.1.14-2.module_el8.10.0+4250+09238ed4ALSA-2026:62583
AlmaLinux8nodejs-nodemon3.1.14-2.module_el8.10.0+4252+aedd4c30ALSA-2026:62219
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-6.module_el8.10.0+4086+70facd4aALSA-2026:62583
AlmaLinux8nodejs-packaging, nodejs-packaging-bundler2021.06-6.module_el8.10.0+4158+e796f37fALSA-2026:62219
AlmaLinux8npm1:10.9.8-1.22.23.2.1.module_el8.10.0+4265+75d28086ALSA-2026:62219
AlmaLinux8npm1:11.17.0-1.24.19.0.1.module_el8.10.0+4268+8e07aa5aALSA-2026:62583
AlmaLinux8v8-12.4-devel3:12.4.254.21-1.22.23.2.1.module_el8.10.0+4265+75d28086ALSA-2026:62219
AlmaLinux8v8-13.6-devel3:13.6.233.17-1.24.19.0.1.module_el8.10.0+4268+8e07aa5aALSA-2026:62583
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 2 more1:22.23.2-1.module_el9.8.0+302+959ebcd4ALSA-2026:61383
AlmaLinux9nodejs, nodejs-docs, nodejs-libs and 2 more1:24.19.0-1.module_el9.8.0+301+084fac05ALSA-2026:61386
13 more for AlmaLinux in the JSON.
Rocky Linux9nodejs-nodemon0:3.1.14-1.module+el9.8.0+40263+faa47049RLSA-2026:97855
Rocky Linux9nodejs-packaging0:2021.06-6.module+el9.7.0+40052+e32ea525RLSA-2026:97855
Rocky Linux9nodejs-packaging0:2021.06-6.module+el9.7.0+40153+4d595597RLSA-2026:97855
Rocky Linux9nodejs-packaging0:2021.06-6.module+el9.7.0+40165+d075e3f2RLSA-2026:97855
Rocky Linux9nodejs-packaging0:2021.06-6.module+el9.8.0+40164+8921ab53RLSA-2026:97855
Rocky Linux10nodejs26, nodejs26-docs, nodejs26-libs and 5 more1:26.12.1-3.el10_3RLSA-2026:98619
Rocky Linux10nodejs26-npm1:11.20.0-1.26.12.1.3.el10_3RLSA-2026:98619
Alpinev3.21, v3.22nodejs22.23.2-r0ALPINE-CVE-2026-58040
Alpinev3.23, v3.24nodejs24.18.1-r0ALPINE-CVE-2026-58040
Alpinev3.24nodejs-current26.5.1-r0ALPINE-CVE-2026-58040
Azure Linux3nodejs24.18.1-1AZL-94349
Alpaquita25nodejs22.23.2-r0BELL-CVE-2026-58040
Alpaquitastreamnodejs24.18.1-r0BELL-CVE-2026-58040
BellSoft Hardened Containers25nodejs22.23.2-r0BELL-CVE-2026-58040
BellSoft Hardened Containersstreamnodejs24.18.1-r0BELL-CVE-2026-58040

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; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is rated Moderate (CVSS 6.3) because successful exploitation allows session-hijacking and information disclosure without affecting system integrity or availability (C:H, I:N, A:N). The flaw occurs when an HTTPS Agent reuses an existing TLS session across requests with differing identity policies, skipping host verification. An attacker must already sit in a privileged network position (AV:N/AC:H) to perform a man-in-the-middle attack and intercept traffic intended for a distinct target on the same TLS session.

Applications that explicitly configure unique HTTPS agents per target host, avoid TLS session caching, or do not make outbound HTTPS requests to varied third-party endpoints using shared client instances are not at risk.

Red Hat's mitigation

To mitigate this issue, Node.js applications should be designed to explicitly configure unique HTTPS agents for each distinct target host. Alternatively, applications can avoid TLS session caching when making outbound HTTPS requests to varied third-party endpoints using shared client instances. Implementing these application-level changes will prevent the vulnerable behavior of skipping hostname verification. Applications may require a restart to apply these changes.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10nodejs22-1:22.23.2-1.el10_2Fixed 2026-08-31RHSA-2026:61376
Red Hat Enterprise Linux 10nodejs24-1:24.19.0-1.el10_2Fixed 2026-08-31RHSA-2026:61377
Red Hat Enterprise Linux 10.0 Extended Update Supportnodejs22-1:22.23.2-1.el10_0Fixed 2026-09-08RHSA-2026:64817
Red Hat Enterprise Linux 8nodejs:22-8100020260819113925.6d880403Fixed 2026-09-01RHSA-2026:62219
Red Hat Enterprise Linux 8nodejs:24-8100020260819113942.6d880403Fixed 2026-09-02RHSA-2026:62583
Red Hat Enterprise Linux 9nodejs:22-9080020260819113937.rhel9Fixed 2026-08-31RHSA-2026:61383
Red Hat Enterprise Linux 9nodejs:24-9080020260819113946.rhel9Fixed 2026-08-31RHSA-2026:61386
Red Hat Enterprise Linux 9nodejs:26-9090020260922082827.rhel9Fixed 2026-11-10RHSA-2026:97855
Red Hat Enterprise Linux 9.6 Extended Update Supportnodejs:22-9060020260901085634.rhel9Fixed 2026-09-02RHSA-2026:62416
Red Hat Hardened Imagesnodejs26-main-11.17.0-1.26.5.1.1.5.hum1Fixed 2026-07-29RHSA-2026:48273
Red Hat Hardened Imagesnodejs26-main-26.5.1-1.5.hum1Fixed 2026-07-29RHSA-2026:48273
Red Hat Hardened Imagesnodejs22-main-10.9.8-1.22.23.2.2.3.hum1Fixed 2026-07-29RHSA-2026:48305
Red Hat Hardened Imagesnodejs22-main-22.23.2-2.3.hum1Fixed 2026-07-29RHSA-2026:48305
Red Hat Hardened Imagesnodejs24-main-11.16.0-1.24.18.1.0.1.hum1Fixed 2026-07-30RHSA-2026:48537
Red Hat Hardened Imagesnodejs24-main-24.18.1-0.1.hum1Fixed 2026-07-30RHSA-2026:48537
Red Hat Enterprise Linux 10nodejs26Affected
Red Hat Hardened Imagesnodejs20Will not fix
Red Hat Hardened Imagesnodejs25Will not fix

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

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON