Skip to content
DoS Disclosed report Intermediate CVE-2026-21637

TLS PSK/ALPN Callback Exceptions Bypass Error Handlers, Causing DoS and FD Leak

Synchronous exceptions thrown inside the TLS pskCallback or ALPNCallback bypass Node.js's normal TLS error handling, so a remote client can crash the process or leak file descriptors until the server runs out of resources. Because the callbacks process attacker-controlled handshake input, a remote client can trigger this repeatedly.

0xmaxhax Follow

Originally disclosed on HackerOne

Medium 5.9 View original
  • Triaged in 7 days
  • Fixed in 24 days
  • Disclosed after 54 days

Summary by the program

A flaw in Node.js TLS error handling allows remote attackers to crash or exhaust resources of a TLS server when pskCallback or ALPNCallback are in use. Synchronous exceptions thrown during these callbacks bypass standard TLS error handling paths (tlsClientError and error), causing either immediate process termination or silent file descriptor leaks that eventually lead to denial of service. Because these callbacks process attacker-controlled input during the TLS handshake, a remote client can repeatedly trigger the issue. This vulnerability affects TLS servers using PSK or ALPN callbacks across Node.js versions where these callbacks throw without being safely wrapped.

The original report as published on HackerOne, by 0xmaxhax. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the callbacks are invoked outside a try/catch, so a synchronous throw skips the tlsClientError and error handlers and unwinds into the process or leaves the socket unclosed.

Impact

A remote client could crash the TLS server process or leak file descriptors until it is exhausted, causing denial of service; the text does not say whether any defence limits this.

What the attacker needed

TLS server uses pskCallback or ALPNCallback; callback throws synchronously; remote network access to the TLS port

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

When a TLS server (the encrypted-connection layer) receives a new connection, it can run small pieces of code called callbacks to decide how to handle it. If that code hits an error, Node.js normally catches it and closes the connection cleanly. Here the error escapes that safety net, so the whole program can die or quietly leave connections open until it can no longer accept new ones.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.