]> dgit.raspbian.org Git - nodejs.git/commit
tls: route callback exceptions through error handlers
authorMatteo Collina <hello@matteocollina.com>
Mon, 22 Dec 2025 17:25:33 +0000 (18:25 +0100)
committerBastien Roucariès <rouca@debian.org>
Sun, 16 Aug 2026 17:34:06 +0000 (19:34 +0200)
commita60b412419672ed2fc417cd23ba0dae7f3fdc66d
tree6518fa0710e33a847acf26cbfcbf10aaed2df221
parente6783c4f693e5cc740ba67d6bd56e7396cfdc871
tls: route callback exceptions through error handlers

Wrap pskCallback and ALPNCallback invocations in try-catch blocks
to route exceptions through owner.destroy() instead of letting them
become uncaught exceptions. This prevents remote attackers from
crashing TLS servers or causing resource exhaustion.

Fixes: https://hackerone.com/reports/3473882
PR-URL: https://github.com/nodejs-private/node-private/pull/782
PR-URL: https://github.com/nodejs-private/node-private/pull/796
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
CVE-ID: CVE-2026-21637

origin: backport, https://github.com/nodejs/node/commit/85f73e7057e9badf6e7713f7440769375cdb5df5

Gbp-Pq: Name CVE-2026-21637.patch
lib/_tls_wrap.js
test/parallel/test-tls-alpn-server-client.js
test/parallel/test-tls-psk-alpn-callback-exception-handling.js [new file with mode: 0644]