JLSEC-2026-2471: Node.js HTTP/2 server can crash on malformed headers
The Node.js CNA also lists the end-of-life 16.x and 18.x release lines as affected.
A malformed HTTP/2 HEADERS frame with oversized, invalid HPACK data can cause Node.js to crash by triggering an unhandled TLSSocket error ECONNRESET. Instead of safely closing the connection, the process crashes, enabling a remote denial of service. This primarily affects applications that do not attach explicit error handlers to secure sockets, for example:
server.on('secureConnection', socket => { socket.on('error', err => { console.log(err) }) })
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Attach an explicit error handler to secure sockets, such as an `error` handler on sockets received via `server.on('secureConnection', ...)`, to handle `ECONNRESET` instead of allowing the process to crash.
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are most exposed to this issue?
HTTP/2 servers using the affected Node.js release lines are exposed, particularly applications that do not register explicit error handlers on secure TLS sockets. The affected software listed includes julia/nodejs_16_jll, julia/nodejs_18_jll, julia/nodejs_20_jll, and julia/nodejs_22_jll.
What does an attacker need to do to trigger the denial of service?
An attacker can remotely send a malformed HTTP/2 HEADERS frame containing oversized, invalid HPACK data. No privileges or user interaction are required.
What can be done if an update cannot be applied immediately?
Attach an error handler to sockets received through the server's secureConnection event so TLSSocket errors are handled rather than left unhandled. The provided example registers socket.on('error', ...) within server.on('secureConnection', ...).
How can I determine whether an application is vulnerable to process crashes from this issue?
Check whether the application serves HTTP/2 with an affected Node.js release line and whether its secureConnection sockets have explicit error handlers. An unhandled TLSSocket ECONNRESET caused by malformed HTTP/2 HPACK data is the relevant crash condition.