CVE-2026-58039·Node.js vulnerability
A flaw in Node.js Permission Model enforcement allows process.report writes (and overwrites) files outside --allow-fs-write paths. This can lead to confidentiality impact or bypass of the intended security boundary under affected configurations. This vulnerability affects Node.js **22.x**, **24.x**, and **26.x**.
- Severity
- medium
- Software
- Node.js
- Fixed in
- 20.19.2+dfsg-1+deb13u3
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.16% — higher than 4% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Affected versions
Until: 20.19.2+dfsg-1+deb13u3
Fixed in: 20.19.2+dfsg-1+deb13u3
How to fix this CVE
Update Node.js to version 20.19.2+dfsg-1+deb13u3 or later to patch the permission model enforcement flaw that allows process.report to write files outside designated --allow-fs-write boundaries. This vulnerability bypasses the intended filesystem isolation when Node.js permission model is enabled, potentially exposing sensitive data. Immediate patching is recommended for all systems running affected versions with permission model restrictions in place.
sudo dnf update nodejsDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check installed Node.js version with 'node --version' and compare against 20.19.2+dfsg-1+deb13u3
- Step 2: Verify if Node.js permission model is enabled by checking startup arguments for '--allow-fs-write' or '--allow-fs-read' flags in running processes: 'ps aux | grep node'
- Step 3: Search application logs for unexpected file writes or process.report() calls that reference paths outside allowed directories: 'grep -r "process.report" /var/log/'
- Step 4: After patching, re-run 'node --version' and confirm it reports 20.19.2 or higher, then restart Node.js services
FAQ
What is CVE-2026-58039?
CVE-2026-58039 is a permission model bypass in Node.js where the process.report feature can write and overwrite files outside the boundaries specified by --allow-fs-write path restrictions. This undermines the filesystem security controls intended to isolate Node.js applications.
Is CVE-2026-58039 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities catalog, and no public exploits are available. However, it should still be patched promptly as an in-the-wild exploitation chain could develop.
What versions of Node.js are affected by CVE-2026-58039?
Node.js versions 22.x, 24.x, and 26.x are affected, along with earlier versions up to and including 20.19.1+dfsg-1+deb13u2 on Debian-based systems.
How do I check if my server is vulnerable to CVE-2026-58039?
Run 'node --version' and compare the output to 20.19.2+dfsg-1+deb13u3. If your version is lower and you use permission model flags (--allow-fs-write), your system is vulnerable.
Does Defensia detect CVE-2026-58039?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Node.js is installed on a monitored server, CVE-2026-58039 will appear in your dashboard with remediation steps.
Related Node.js CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-58039. Free for 1 server.
Get started free