CVE-2026-56848·Node.js vulnerability
A flaw in Node.js HTTP/2 handling allows `nghttp2_session_mem_send()` to be called re-entrantly while `nghttp2_session_mem_recv()` is executing, resulting in a heap-use-after-free. This vulnerability affects Node.js **26.x**, **24.x**, and **22.x**.
- Severity
- critical
- Software
- Node.js
- Fixed in
- 18.20.4+dfsg-1~deb12u3
- 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.49% — higher than 41% 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-56848 scores 9 on CVSS, so a successful attack would be serious — but at 0.49%, 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: 18.20.4+dfsg-1~deb12u3
Fixed in: 18.20.4+dfsg-1~deb12u3
How to fix this CVE
Update Node.js to version 18.20.4+dfsg-1~deb12u3 or later to patch a critical heap-use-after-free vulnerability in HTTP/2 session handling. This flaw can be triggered through concurrent HTTP/2 operations, leading to application crashes or potential memory corruption. Prioritize this update immediately due to the critical severity rating.
sudo dnf update nodejsDefensia detects this vulnerability
How to check if you are affected
- Run `node --version` or `nodejs --version` to identify the currently installed Node.js version and compare against the fixed version 18.20.4+dfsg-1~deb12u3.
- Check if your application uses HTTP/2 by inspecting server configuration files (e.g., searching for h2 or spdy protocol declarations in reverse proxy configs like nginx or Apache).
- Search application logs for segmentation faults, memory access errors, or abrupt connection terminations that coincide with HTTP/2 traffic spikes using: `grep -i 'segmentation\|heap\|memory\|abort' /var/log/syslog /var/log/node*.log 2>/dev/null`.
- After patching, verify the fix by running `node --version` again and confirm it reports 18.20.4 or later, then restart the Node.js application and monitor for stable operation over 24 hours.
FAQ
What is CVE-2026-56848?
CVE-2026-56848 is a critical heap-use-after-free vulnerability in Node.js HTTP/2 processing where the nghttp2 session handler can be called re-entrantly, causing memory corruption when concurrent HTTP/2 operations occur simultaneously.
Is CVE-2026-56848 being actively exploited?
No, CVE-2026-56848 is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are currently available, but the critical CVSS score warrants immediate patching.
What versions of Node.js are affected by CVE-2026-56848?
Node.js versions 26.x, 24.x, and 22.x are affected, along with earlier versions up to 18.20.4+dfsg-1~deb12u3 where the patch was released.
How do I check if my server is vulnerable to CVE-2026-56848?
Run `node --version` and verify the output. If it shows any version prior to 18.20.4+dfsg-1~deb12u3, or if you're running Node.js 22.x, 24.x, or 26.x, your system is vulnerable.
Does Defensia detect CVE-2026-56848?
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-56848 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-56848. Free for 1 server.
Get started free