CVE-2026-123877 in Node.js: Fixed in 26.13.1, 24.22.3 and 22.23.5, Verified by Its Own Test
Certificate validation bypass in Node.js https.Agent via cross-policy TLS session reuse
- SeverityMediumNode.js Security Working Group
- Fixed in26.13.1and 24.22.3 and 22.23.5
- Our testFix verifiedon 3 lines
Our Test
Node.js fixed CVE-2026-123877 with 2 tests of its own. We ran them unchanged on the release before the fix and on the fixed release, each twice, every run in a fresh isolated container.
Node.js 2626.13.0 → 26.13.1
test-https-agent-getname.js26.13.0, both runs: failed its assertions26.13.1, both runs: passedtest-https-agent-tls-policy-reuse.js26.13.0, both runs: failed its assertions26.13.1, both runs: passed
Node.js 2424.22.2 → 24.22.32 tests fail before, pass after
test-https-agent-getname.js24.22.2, both runs: failed its assertions24.22.3, both runs: passedtest-https-agent-tls-policy-reuse.js24.22.2, both runs: failed its assertions24.22.3, both runs: passed
Node.js 2222.23.4 → 22.23.52 tests fail before, pass after
test-https-agent-getname.js22.23.4, both runs: failed its assertions22.23.5, both runs: passedtest-https-agent-tls-policy-reuse.js22.23.4, both runs: failed its assertions22.23.5, both runs: passed
Which Version Has the Fix
- Node.js 26: 26.13.1 or later · Node.js 26 page
- Node.js 24: 24.22.3 or later · Node.js 24 page
- Node.js 22: 22.23.5 or later · Node.js 22 page
Check your exact Node.js version for every missed fix
How we tested, and how to repeat it
- The test files: what Node.js's fix commits for CVE-2026-123877 added or changed, taken with
test/commonand the fixtures they use from the official source tarball of each fixed release, checked against its SHASUMS256.txt. - Each version ran them twice, each time in a new container from the official image
node:<version>-slim(the nodejs.org release binary), with no network, no mounts, no root and every privilege dropped; each container was removed after its run. - We call the fix verified only when every test of it passes on the fixed release in both runs and at least one fails on the release before it in both runs. A CVE whose test does not show that gets no page.
To repeat the first test:
curl -O https://nodejs.org/dist/v26.13.1/node-v26.13.1.tar.xz
tar -xf node-v26.13.1.tar.xz node-v26.13.1/test
cd node-v26.13.1
docker run --rm --network none -v "$PWD/test:/src/test" -w /src node:26.13.0-slim node test/parallel/test-https-agent-getname.js
docker run --rm --network none -v "$PWD/test:/src/test" -w /src node:26.13.1-slim node test/parallel/test-https-agent-getname.jsSources
- Wednesday, November 11, 2026 Security Releases: the official advisory.
- The fix commits on nodejs/node: in each tested line above.
- CVE-2026-123877 at cve.org: the CVE record.
- Node.js security releases: every security release of the past 12 months and its CVEs.
Code builds this page from the Node.js Security Working Group record and our own test run; nobody edits the result. Spotted a mistake? Report a correction.