CVE-2026-48930 in Node.js: Fixed in 26.3.1, 24.17.0 and 22.23.0, Verified by Its Own Test
Embedded-nul hostnames can lead to silent authority rebinding due to c-string truncation in resolver bindings
- SeverityMediumNode.js Security Working Group
- Fixed in26.3.1and 24.17.0 and 22.23.0
- Our testFix verifiedfails on 26.3.0, passes on 26.3.1
Our Test
Node.js fixed CVE-2026-48930 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.3.0 → 26.3.1
test-dns-lookup.js26.3.0, both runs: failed its assertions26.3.1, both runs: passedtest-net-connect-options-invalid.js26.3.0, both runs: failed its assertions26.3.1, both runs: passed
Which Version Has the Fix
- Node.js 26: 26.3.1 or later · latest 26.13.1 · Node.js 26 page
- Node.js 24: 24.17.0 or later · latest 24.22.3 · Node.js 24 page
- Node.js 22: 22.23.0 or later · latest 22.23.5 · 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 commit for CVE-2026-48930 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 (with the options its first line asks for):
curl -O https://nodejs.org/dist/v26.3.1/node-v26.3.1.tar.xz
tar -xf node-v26.3.1.tar.xz node-v26.3.1/test
cd node-v26.3.1
docker run --rm --network none -v "$PWD/test:/src/test" -w /src node:26.3.0-slim node --expose-internals test/parallel/test-dns-lookup.js
docker run --rm --network none -v "$PWD/test:/src/test" -w /src node:26.3.1-slim node --expose-internals test/parallel/test-dns-lookup.jsSources
- Thursday, June 18, 2026 Security Releases: the official advisory.
- The fix commit on nodejs/node: in each tested line above.
- CVE-2026-48930 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.