| Name | CVE-2025-59465 |
| Description | 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) }) }) ``` |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6166-1 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| nodejs (PTS) | bullseye | 12.22.12~dfsg-1~deb11u4 | vulnerable |
| bullseye (security) | 12.22.12~dfsg-1~deb11u7 | vulnerable | |
| bookworm, bookworm (security) | 18.20.4+dfsg-1~deb12u1 | vulnerable | |
| trixie | 20.19.2+dfsg-1 | vulnerable | |
| trixie (security) | 20.19.2+dfsg-1+deb13u1 | fixed | |
| forky, sid | 22.22.1+dfsg+~cs22.19.15-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| nodejs | source | trixie | 20.19.2+dfsg-1+deb13u1 | DSA-6166-1 | ||
| nodejs | source | (unstable) | 22.22.0+dfsg+~cs22.19.6-1 |
https://nodejs.org/en/blog/vulnerability/december-2025-security-releases#nodejs-http2-server-crashes-with-unhandled-error-when-receiving-malformed-headers-frame-cve-2025-59465---high
Fixed by: https://github.com/nodejs/node/commit/1febc48d5b0bcf9070085589d9cc586d74053f9c (v20.20.0)