Use-after-free in Node.js - CVE-2026-56848

 

Use-after-free in Node.js - CVE-2026-56848

Published: July 29, 2026 / Updated: July 29, 2026


Vulnerability identifier: #VU140039
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-56848
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service or potentially execute arbitrary code.

The vulnerability exists due to use-after-free in Node.js HTTP/2 handling when nghttp2_session_mem_send() is called re-entrantly while nghttp2_session_mem_recv() is executing. A remote attacker can trigger re-entrant HTTP/2 processing to cause a denial of service or potentially execute arbitrary code.


Affected software

Node.js
SUSE Linux Enterprise Server 15 SP6
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Web and Scripting Module
openSUSE Leap
nodejs22 (Red Hat package)
nodejs22-debuginfo
nodejs22-docs
nodejs22-devel
npm22
corepack22
nodejs22
nodejs22-debugsource
nodejs24-devel
nodejs24-debuginfo
nodejs24-debugsource
nodejs24
npm24
nodejs24-docs
nodejs24 (Red Hat package)

How to mitigate CVE-2026-56848

Install security update from vendor's website.

Node.js - addressed in versions 22.23.2, 24.18.1, 26.5.1
nodejs22 (Red Hat package) - update to 22.23.2-1.el10_2
nodejs22-debuginfo - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
nodejs22-docs - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
nodejs22-devel - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
npm22 - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
corepack22 - update to 22.23.2-150600.13.24.1
nodejs22 - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
nodejs22-debugsource - addressed in versions 22.23.2-150600.13.24.1, 22.23.2-150700.3.18.1
nodejs24-devel - update to 24.18.1-150700.15.16.1
nodejs24-debuginfo - update to 24.18.1-150700.15.16.1
nodejs24-debugsource - update to 24.18.1-150700.15.16.1
nodejs24 - update to 24.18.1-150700.15.16.1
npm24 - update to 24.18.1-150700.15.16.1
nodejs24-docs - update to 24.18.1-150700.15.16.1
nodejs24 (Red Hat package) - update to 24.19.0-1.el10_2

External References

Related Security Bulletins