CVSS 3.0
6.3 mediumCVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:NMedium (6.3) in nodejs node. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.
CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:NExplain 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.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| nodejs node | from 22.23.1 through 22.23.1 |
| nodejs node | from 24.18.0 through 24.18.0 |
| nodejs node | from 26.5.0 through 26.5.0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | nodejs | 18.20.4+dfsg-1~deb12u3 | DEBIAN-CVE-2026-58040 DLA-4809-1 |
| Debian | 14 | nodejs | 24.19.0+dfsg+~cs24.13.3-1 | DEBIAN-CVE-2026-58040 |
| Ubuntu | 24.04:LTS, 26.04:LTS, 26.10 and 5 more | nodejs | no fix listed | UBUNTU-CVE-2026-58040 |
| Red Hat | enterprise_linux:8::appstream | nodejs, nodejs-docs, nodejs-libs and 5 more | 1:22.23.2-1.module+el8.10.0+24710+c2e9b41f | RHSA-2026:62219 |
| Red Hat | enterprise_linux:8::appstream | nodejs, nodejs-docs, nodejs-libs and 5 more | 1:24.19.0-1.module+el8.10.0+24711+b610b202 | RHSA-2026:62583 |
| Red Hat | enterprise_linux:8::appstream | nodejs-nodemon | 0:3.1.14-2.module+el8.10.0+24710+c2e9b41f | RHSA-2026:62219 |
| Red Hat | enterprise_linux:8::appstream | nodejs-nodemon | 0:3.1.14-2.module+el8.10.0+24711+b610b202 | RHSA-2026:62583 |
| Red Hat | enterprise_linux:8::appstream | nodejs-packaging, nodejs-packaging-bundler | 0:2021.06-6.module+el8.10.0+24710+c2e9b41f | RHSA-2026:62219 |
| Red Hat | enterprise_linux:8::appstream | nodejs-packaging, nodejs-packaging-bundler | 0:2021.06-6.module+el8.10.0+24711+b610b202 | RHSA-2026:62583 |
| Red Hat | enterprise_linux:8::appstream | npm | 1:10.9.8-1.22.23.2.1.module+el8.10.0+24710+c2e9b41f | RHSA-2026:62219 |
| Red Hat | enterprise_linux:8::appstream | npm | 1:11.17.0-1.24.19.0.1.module+el8.10.0+24711+b610b202 | RHSA-2026:62583 |
| Red Hat | enterprise_linux:8::appstream | v8-12.4-devel | 3:12.4.254.21-1.22.23.2.1.module+el8.10.0+24710+c2e9b41f | RHSA-2026:62219 |
| Red Hat | enterprise_linux:8::appstream | v8-13.6-devel | 3:13.6.233.17-1.24.19.0.1.module+el8.10.0+24711+b610b202 | RHSA-2026:62583 |
| Red Hat | enterprise_linux:9::appstream | nodejs, nodejs-docs, nodejs-libs and 5 more | 1:22.23.2-1.module+el9.8.0+24709+804d6b5b | RHSA-2026:61383 |
| Red Hat | enterprise_linux:9::appstream | nodejs, nodejs-docs, nodejs-libs and 5 more | 1:24.19.0-1.module+el9.8.0+24708+e71d2e1d | RHSA-2026:61386 |
| 30 more for Red Hat in the JSON and on Red Hat's page. | ||||
| SUSE | Linux 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 more | nodejs18 | 18.20.8-150400.9.39.1 | SUSE-SU-2026:4261-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Server 15 SP4-LTSS and 1 more | nodejs16 | 16.20.2-150400.3.42.1 | SUSE-SU-2026:4355-1 |
| SUSE | Linux Enterprise High Performance Computing 15 SP5-ESPOS, Linux Enterprise High Performance Computing 15 SP5-LTSS, Linux Enterprise Server 15 SP5-LTSS and 1 more | nodejs20 | 20.20.2-150500.11.30.1 | SUSE-SU-2026:3930-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 15 SP7 | nodejs22 | 22.23.2-150700.3.18.1 | SUSE-SU-2026:3557-1 |
| SUSE | Linux Enterprise Module for Web and Scripting 15 SP7 | nodejs24 | 24.18.1-150700.15.16.1 | SUSE-SU-2026:3520-1 |
| SUSE | Linux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5 | nodejs18 | 18.20.8-8.44.1 | SUSE-SU-2026:4248-1 |
| SUSE | Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6 | nodejs20 | 20.20.2-150600.3.21.1 | SUSE-SU-2026:3929-1 |
| SUSE | Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6 | nodejs22 | 22.23.2-150600.13.24.1 | SUSE-SU-2026:3521-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | nodejs22 | 22.23.2-160000.1.1 | SUSE-SU-2026:23130-1 SUSE-SU-2026:23154-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | nodejs24 | 24.18.1-160000.1.1 | SUSE-SU-2026:23131-1 SUSE-SU-2026:23155-1 |
| openSUSE | Leap 16.0 | nodejs22 | 22.23.2-160000.1.1 | openSUSE-SU-2026:21545-1 |
| openSUSE | Leap 16.0 | nodejs24 | 24.18.1-160000.1.1 | openSUSE-SU-2026:21546-1 |
| openSUSE | Tumbleweed | nodejs24 | 24.18.1-1.1 | openSUSE-SU-2026:11439-1 |
| openSUSE | Tumbleweed | nodejs26 | 26.5.1-1.1 | openSUSE-SU-2026:11440-1 |
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-libs and 2 more | 1:22.23.2-1.module_el8.10.0+4265+75d28086 | ALSA-2026:62219 |
| AlmaLinux | 8 | nodejs, nodejs-docs, nodejs-libs and 2 more | 1:24.19.0-1.module_el8.10.0+4268+8e07aa5a | ALSA-2026:62583 |
| AlmaLinux | 8 | nodejs-nodemon | 3.1.14-2.module_el8.10.0+4250+09238ed4 | ALSA-2026:62583 |
| AlmaLinux | 8 | nodejs-nodemon | 3.1.14-2.module_el8.10.0+4252+aedd4c30 | ALSA-2026:62219 |
| AlmaLinux | 8 | nodejs-packaging, nodejs-packaging-bundler | 2021.06-6.module_el8.10.0+4086+70facd4a | ALSA-2026:62583 |
| AlmaLinux | 8 | nodejs-packaging, nodejs-packaging-bundler | 2021.06-6.module_el8.10.0+4158+e796f37f | ALSA-2026:62219 |
| AlmaLinux | 8 | npm | 1:10.9.8-1.22.23.2.1.module_el8.10.0+4265+75d28086 | ALSA-2026:62219 |
| AlmaLinux | 8 | npm | 1:11.17.0-1.24.19.0.1.module_el8.10.0+4268+8e07aa5a | ALSA-2026:62583 |
| AlmaLinux | 8 | v8-12.4-devel | 3:12.4.254.21-1.22.23.2.1.module_el8.10.0+4265+75d28086 | ALSA-2026:62219 |
| AlmaLinux | 8 | v8-13.6-devel | 3:13.6.233.17-1.24.19.0.1.module_el8.10.0+4268+8e07aa5a | ALSA-2026:62583 |
| AlmaLinux | 9 | nodejs, nodejs-docs, nodejs-libs and 2 more | 1:22.23.2-1.module_el9.8.0+302+959ebcd4 | ALSA-2026:61383 |
| AlmaLinux | 9 | nodejs, nodejs-docs, nodejs-libs and 2 more | 1:24.19.0-1.module_el9.8.0+301+084fac05 | ALSA-2026:61386 |
| 13 more for AlmaLinux in the JSON. | ||||
| Rocky Linux | 9 | nodejs-nodemon | 0:3.1.14-1.module+el9.8.0+40263+faa47049 | RLSA-2026:97855 |
| Rocky Linux | 9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40052+e32ea525 | RLSA-2026:97855 |
| Rocky Linux | 9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40153+4d595597 | RLSA-2026:97855 |
| Rocky Linux | 9 | nodejs-packaging | 0:2021.06-6.module+el9.7.0+40165+d075e3f2 | RLSA-2026:97855 |
| Rocky Linux | 9 | nodejs-packaging | 0:2021.06-6.module+el9.8.0+40164+8921ab53 | RLSA-2026:97855 |
| Rocky Linux | 10 | nodejs26, nodejs26-docs, nodejs26-libs and 5 more | 1:26.12.1-3.el10_3 | RLSA-2026:98619 |
| Rocky Linux | 10 | nodejs26-npm | 1:11.20.0-1.26.12.1.3.el10_3 | RLSA-2026:98619 |
| Alpine | v3.21, v3.22 | nodejs | 22.23.2-r0 | ALPINE-CVE-2026-58040 |
| Alpine | v3.23, v3.24 | nodejs | 24.18.1-r0 | ALPINE-CVE-2026-58040 |
| Alpine | v3.24 | nodejs-current | 26.5.1-r0 | ALPINE-CVE-2026-58040 |
| Azure Linux | 3 | nodejs | 24.18.1-1 | AZL-94349 |
| Alpaquita | 25 | nodejs | 22.23.2-r0 | BELL-CVE-2026-58040 |
| Alpaquita | stream | nodejs | 24.18.1-r0 | BELL-CVE-2026-58040 |
| BellSoft Hardened Containers | 25 | nodejs | 22.23.2-r0 | BELL-CVE-2026-58040 |
| BellSoft Hardened Containers | stream | nodejs | 24.18.1-r0 | BELL-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 rates this Moderate.
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.
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.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | nodejs22-1:22.23.2-1.el10_2 | Fixed 2026-08-31 | RHSA-2026:61376 |
| Red Hat Enterprise Linux 10 | nodejs24-1:24.19.0-1.el10_2 | Fixed 2026-08-31 | RHSA-2026:61377 |
| Red Hat Enterprise Linux 10.0 Extended Update Support | nodejs22-1:22.23.2-1.el10_0 | Fixed 2026-09-08 | RHSA-2026:64817 |
| Red Hat Enterprise Linux 8 | nodejs:22-8100020260819113925.6d880403 | Fixed 2026-09-01 | RHSA-2026:62219 |
| Red Hat Enterprise Linux 8 | nodejs:24-8100020260819113942.6d880403 | Fixed 2026-09-02 | RHSA-2026:62583 |
| Red Hat Enterprise Linux 9 | nodejs:22-9080020260819113937.rhel9 | Fixed 2026-08-31 | RHSA-2026:61383 |
| Red Hat Enterprise Linux 9 | nodejs:24-9080020260819113946.rhel9 | Fixed 2026-08-31 | RHSA-2026:61386 |
| Red Hat Enterprise Linux 9 | nodejs:26-9090020260922082827.rhel9 | Fixed 2026-11-10 | RHSA-2026:97855 |
| Red Hat Enterprise Linux 9.6 Extended Update Support | nodejs:22-9060020260901085634.rhel9 | Fixed 2026-09-02 | RHSA-2026:62416 |
| Red Hat Hardened Images | nodejs26-main-11.17.0-1.26.5.1.1.5.hum1 | Fixed 2026-07-29 | RHSA-2026:48273 |
| Red Hat Hardened Images | nodejs26-main-26.5.1-1.5.hum1 | Fixed 2026-07-29 | RHSA-2026:48273 |
| Red Hat Hardened Images | nodejs22-main-10.9.8-1.22.23.2.2.3.hum1 | Fixed 2026-07-29 | RHSA-2026:48305 |
| Red Hat Hardened Images | nodejs22-main-22.23.2-2.3.hum1 | Fixed 2026-07-29 | RHSA-2026:48305 |
| Red Hat Hardened Images | nodejs24-main-11.16.0-1.24.18.1.0.1.hum1 | Fixed 2026-07-30 | RHSA-2026:48537 |
| Red Hat Hardened Images | nodejs24-main-24.18.1-0.1.hum1 | Fixed 2026-07-30 | RHSA-2026:48537 |
| Red Hat Enterprise Linux 10 | nodejs26 | Affected | |
| Red Hat Hardened Images | nodejs20 | Will not fix | |
| Red Hat Hardened Images | nodejs25 | Will 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.
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.