CVE-2026-58045·Node.js vulnerability
A flaw in Node.js allows a spoofed `TypedArray` `byteLength` to trigger a reachable assertion in the synchronous `node:zlib` APIs, causing the entire process to crash. All 11 synchronous zlib functions are affected. Repeated exploitation of this condition can result in a denial of service. This vulnerability affects Node.js **22.x**, **24.x**, and **26.x**.
- Severity
- high
- Software
- Node.js
- Fixed in
- 24.19.0+dfsg+~cs24.13.3-1
- 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.17% — higher than 5% 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.
Read the two together. CVE-2026-58045 scores 7.5 on CVSS, so a successful attack would be serious — but at 0.17%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
Until: 24.19.0+dfsg+~cs24.13.3-1
Fixed in: 24.19.0+dfsg+~cs24.13.3-1
How to fix this CVE
Node.js versions 22.x, 24.x, and 26.x contain a flaw in the synchronous zlib API that can be triggered by a crafted TypedArray byteLength value, causing the process to crash and resulting in denial of service. Update Node.js to version 24.19.0 or later to remediate this issue. Organizations running affected versions should prioritize this update to restore service stability.
sudo dnf update nodejsDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your installed Node.js version by running: node --version or nodejs --version
- Step 2: Verify if your application uses synchronous zlib functions (zlib.deflateSync, zlib.inflateSync, zlib.gzipSync, zlib.gunzipSync, zlib.deflateRawSync, zlib.inflateRawSync, zlib.brotliCompressSync, zlib.brotliDecompressSync, zlib.createDeflate, zlib.createInflate, zlib.createGzip, or zlib.createGunzip) by searching your codebase: grep -r "deflateSync\|inflateSync\|gzipSync" /path/to/app
- Step 3: Review system logs for unexpected Node.js process terminations or assertion errors: journalctl -u nodejs -n 100 | grep -i 'assertion\|crash\|fatal'
- Step 4: After applying the update, confirm the patched version is running: node --version and verify no zlib-related crashes occur during normal operation
FAQ
What is CVE-2026-58045?
This vulnerability affects Node.js synchronous zlib compression functions, which can be triggered to crash via a spoofed TypedArray byteLength value. An attacker can repeatedly trigger this assertion failure to cause repeated denial of service against applications relying on synchronous compression.
Is CVE-2026-58045 being actively exploited?
No, this vulnerability is not currently listed on the CISA KEV catalog and has no known public exploits available at this time.
What versions of Node.js are affected by CVE-2026-58045?
Node.js versions 22.x, 24.x, and 26.x prior to version 24.19.0 are vulnerable. The exact version cutoff for 22.x and 26.x branches should be verified against upstream release notes.
How do I check if my server is vulnerable to CVE-2026-58045?
Run: node --version. If the output shows 22.x, 24.x (before 24.19.0), or 26.x, your installation is vulnerable. Cross-reference with your application's use of synchronous zlib APIs.
Does Defensia detect CVE-2026-58045?
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-58045 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-58045. Free for 1 server.
Get started free