CVE Catalog

CVE-2025-59466

High
Published: Translated: NVD NIST

Summary

A bug has been identified in Node.js error handling where 'Maximum call stack size exceeded' errors become uncatchable when `async_hooks.createHook()` is enabled. Instead of reaching `process.on('uncaughtException')`, the process terminates, making the crash unrecoverable. Applications relying on `AsyncLocalStorage` (v22, v20) or `async_hooks.createHook()` (v24, v22, v20) become vulnerable to denial-of-service crashes triggered by deep recursion under specific conditions.

Risk Assessment

The risk is that an attacker can cause an unrecoverable crash of the Node.js process, resulting in service disruption (denial-of-service). The organization may experience application unavailability, impacting business continuity and system availability.

Recommendation

It is recommended to immediately update Node.js to a patched version (if available) and monitor for stack overflow error messages. In the meantime, limit recursion depth in applications and consider disabling `async_hooks` where not necessary.

Other vulnerabilities in Node.js

See all
Original NVD description (English source)

We have identified a bug in Node.js error handling where "Maximum call stack size exceeded" errors become uncatchable when `async_hooks.createHook()` is enabled. Instead of reaching `process.on('uncaughtException')`, the process terminates, making the crash unrecoverable. Applications that rely on `AsyncLocalStorage` (v22, v20) or `async_hooks.createHook()` (v24, v22, v20) become vulnerable to denial-of-service crashes triggered by deep recursion under specific conditions.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS