| Name | CVE-2026-58040 |
| Description | 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**. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| nodejs (PTS) | bullseye | 12.22.12~dfsg-1~deb11u4 | vulnerable |
| bullseye (security) | 12.22.12~dfsg-1~deb11u8 | vulnerable |
| bookworm, bookworm (security) | 18.20.4+dfsg-1~deb12u2 | vulnerable |
| trixie (security), trixie | 20.19.2+dfsg-1+deb13u2 | fixed |
| forky, sid | 24.19.0+dfsg+~cs24.13.3-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| nodejs | source | trixie | (not affected) | | | |
| nodejs | source | (unstable) | 24.19.0+dfsg+~cs24.13.3-1 | | | |
Notes
[trixie] - nodejs <not-affected> (Incomplete fix for CVE-2026-48934 not applied)
https://nodejs.org/en/blog/vulnerability/july-2026-security-releases#https-agent-session-reuse-can-skip-hostname-verification-cve-2026-58040---medium
Fixed by: https://github.com/nodejs/node/commit/51123159fe863073d7dcaf5c88b23bad8aae1a62 (v22.23.2)
CVE exists because of an incomplete fix for CVE-2026-48934