JLSEC-2026-2472: Node.js async hooks can make stack overflow errors uncatchable
The Node.js CNA also lists the end-of-life 16.x and 18.x release lines as affected.
We have identified a bug in Node.js error handling where "Maximum call stack size exceeded" errors become uncatchable when asynchooks.createHook() is enabled. Instead of reaching process.on('uncaughtException'), the process terminates, making the crash unrecoverable. Applications that rely on AsyncLocalStorage (v22, v20) or asynchooks.createHook() (v24, v22, v20) become vulnerable to denial-of-service crashes triggered by deep recursion under specific conditions.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which applications are exposed to this denial-of-service condition?
Applications are exposed when they rely on AsyncLocalStorage in Node.js 20.x or 22.x, or enable async_hooks.createHook() in Node.js 20.x, 22.x, or 24.x. The affected software list also includes Julia-packaged Node.js 16, 18, 20, and 22 builds.
What must an attacker do to trigger the crash?
An attacker must be able to cause deep recursion under the specific conditions that produce a "Maximum call stack size exceeded" error while the relevant async hooks functionality is enabled. No privileges or user interaction are required according to the supplied severity vector.
Can an application recover through an uncaughtException handler?
No. When this condition occurs with async_hooks.createHook() enabled, the stack-overflow error does not reach process.on('uncaughtException'); the process terminates instead.