JLSEC-2026-2471: Node.js HTTP/2 server can crash on malformed headers

Published Dec 4, 2026
·
Updated

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

4 affected components
julia/nodejs_16_jll*
julia/nodejs_18_jll*
julia/nodejs_20_jll*
julia/nodejs_22_jll*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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

Dec 4, 2026
Advisory Published
via OSV·10:09 PM
Data Sourced
via OSV·10:09 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

3

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', ...).

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203