CVE-2025-59465: Node.js HTTP/2 server crashes with unhandled error when receiving malformed HEADERS frame

Published Jan 13, 2026
·
Updated

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) }) })

Other sources

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:

— Node.Js

Affected Software

16 affected componentsFixes available
npm/node
Nodejs Node.js>=20.0.0<20.20.0
Nodejs Node.js>=22.0.0<22.22.0
Nodejs Node.js>=24.0.0<24.13.0
Nodejs Node.js>=25.0.0<25.3.0
Node.js Node.js>=20.0.0<20.20.0, >=22.0.0<22.22.0, >=24.0.0<24.13.0, >=25.0.0<25.3.0
20.20.022.22.024.13.025.3.0
Node.js Node.js>=20.0.0<20.20.0
20.20.0
Node.js Node.js>=22.0.0<22.22.0
22.22.0
Node.js Node.js>=24.0.0<24.13.0
24.13.0
Node.js Node.js>=25.0.0<25.3.0
25.3.0
debian/nodejs
12.22.12~dfsg-1~deb11u818.20.4+dfsg-1~deb12u220.19.2+dfsg-1+deb13u122.22.0+dfsg+~cs22.19.6-1
debian/nodejs<18.20.4+dfsg-1~deb12u2
18.20.4+dfsg-1~deb12u2
debian/nodejs<20.19.2+dfsg-1+deb13u1
20.19.2+dfsg-1+deb13u1
debian/nodejs<22.22.0+dfsg+~cs22.19.6-1
22.22.0+dfsg+~cs22.19.6-1
alpine/nodejs<22.22.2-r0
22.22.2-r0
alpine/nodejs<22.22.0-r0
22.22.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 20.20.0Fixed in 22.22.0Fixed in 24.13.0Fixed in 25.3.0
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 20.20.0
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 22.22.0
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 24.13.0
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 25.3.0
  6. Upgrade

    Upgrade debian/nodejs to a version that resolves this vulnerability.

    Fixed in 12.22.12~dfsg-1~deb11u8Fixed in 18.20.4+dfsg-1~deb12u2Fixed in 20.19.2+dfsg-1+deb13u1Fixed in 22.22.0+dfsg+~cs22.19.6-1
  7. Upgrade

    Upgrade debian/nodejs to a version that resolves this vulnerability.

    Fixed in 18.20.4+dfsg-1~deb12u2
  8. Upgrade

    Upgrade debian/nodejs to a version that resolves this vulnerability.

    Fixed in 20.19.2+dfsg-1+deb13u1
  9. Upgrade

    Upgrade debian/nodejs to a version that resolves this vulnerability.

    Fixed in 22.22.0+dfsg+~cs22.19.6-1
  10. Upgrade

    Upgrade alpine/nodejs to a version that resolves this vulnerability.

    Fixed in 22.22.2-r0
  11. Upgrade

    Upgrade alpine/nodejs to a version that resolves this vulnerability.

    Fixed in 22.22.0-r0
  12. Compensating control

    Attach an explicit 'error' handler to secure sockets in the server's 'secureConnection' handler (for example, socket.on('error', err => { console.log(err) })) to handle ECONNRESET.

Event History

Jan 13, 2026
CVE Published
via Node.js·12:00 AM
Data Sourced
via Node.js·12:00 AM
DescriptionSeverityAffected Software
Jan 14, 2026
News Published
via The Hacker News·07:05 AM
Jan 19, 2026
News Published
via The Hacker News·01:17 PM
Jan 20, 2026
CVE Published
via MITRE·08:41 PM
Data Sourced
via MITRE·08:41 PM
DescriptionSeverity
Data Sourced
via Red Hat·09:03 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:16 PM
DescriptionSeverity
Data Sourced
via OSV·09:16 PM
DescriptionAffected Software
Jan 21, 2026
Data Sourced
via NVD·09:16 PM
Weakness
Jan 30, 2026
Data Sourced
via NVD·08:25 PM
Affected Software
Jun 30, 2026
Updated
via NVD·03:16 AM
SeverityWeakness
Dec 2, 2026
Data Sourced
via OSV·11:18 AM
Severity

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-59465?

CVE-2025-59465 has a high severity rating due to the potential to crash Node.js applications.

2

How do I fix CVE-2025-59465?

To fix CVE-2025-59465, update Node.js to the latest version where the vulnerability has been addressed.

3

What impact does CVE-2025-59465 have on applications?

CVE-2025-59465 can lead to process crashes in applications that handle malformed HTTP/2 HEADERS frames.

4

Is CVE-2025-59465 specific to certain Node.js versions?

Yes, CVE-2025-59465 affects various versions of Node.js that do not implement fixes for this vulnerability.

5

What is the cause of the vulnerability in CVE-2025-59465?

CVE-2025-59465 is caused by oversized and invalid HPACK data leading to an unhandled TLSSocket error.

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