CVE-2026-58043 in Node.js: Fixed in 26.5.1, 24.18.1 and 22.23.2, Verified by Its Own Test
Permission Model: --allow-fs-read/--allow-fs-write radix-tree prefix-boundary over-grant
- SeverityHighNode.js Security Working Group
- Fixed in26.5.1and 24.18.1 and 22.23.2
- Our testFix verifiedon 3 lines
Our Test
Node.js fixed CVE-2026-58043 with a test of its own. We ran it unchanged on the release before the fix and on the fixed release, each twice, every run in a fresh isolated container.
Node.js 2626.5.0 → 26.5.1
test-permission-fs-read.js26.5.0, both runs: failed its assertions26.5.1, both runs: passed
Node.js 2424.18.0 → 24.18.1its test fails before, passes after
test-permission-fs-read.js24.18.0, both runs: failed its assertions24.18.1, both runs: passed
Node.js 2222.23.1 → 22.23.2its test fails before, passes after
test-permission-fs-read.js22.23.1, both runs: failed its assertions22.23.2, both runs: passed
Which Version Has the Fix
- Node.js 26: 26.5.1 or later · latest 26.13.1 · Node.js 26 page
- Node.js 24: 24.18.1 or later · latest 24.22.3 · Node.js 24 page
- Node.js 22: 22.23.2 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 commits for CVE-2026-58043 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.5.1/node-v26.5.1.tar.xz
tar -xf node-v26.5.1.tar.xz node-v26.5.1/test
cd node-v26.5.1
docker run --rm --network none -v "$PWD/test:/src/test" -w /src node:26.5.0-slim node --permission --allow-fs-read=* --allow-fs-write=* --allow-child-process test/parallel/test-permission-fs-read.js
docker run --rm --network none -v "$PWD/test:/src/test" -w /src node:26.5.1-slim node --permission --allow-fs-read=* --allow-fs-write=* --allow-child-process test/parallel/test-permission-fs-read.jsSources
- Wednesday, July 29, 2026 Security Releases: the official advisory.
- The fix commits on nodejs/node: in each tested line above.
- CVE-2026-58043 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.