Denial-of-Service Vulnerability in Node.js Affects Multiple Versions
CVE-2025-59466
What is CVE-2025-59466?
A flaw in Node.js error handling has been discovered, where enabling 'async_hooks.createHook()' leads to a scenario where 'Maximum call stack size exceeded' errors become uncatchable. This results in application crashes without reaching the 'uncaughtException' handler. As a consequence, applications that utilize 'AsyncLocalStorage' and specific versions of 'async_hooks.createHook()' are left exposed, allowing for denial-of-service attacks caused by deep recursion under particular conditions. Developers are urged to review their applications for these vulnerabilities and implement necessary safeguards.
Affected Version(s)
node 20.19.6
node 22.21.1
node 24.12.0
News Articles
Critical Node.js Vulnerability Can Cause Server Crashes via async_hooks Stack Overflow
Node.js released updates fixing a critical DoS flaw caused by async_hooks stack crashes, tracked as CVE-2025-59466, impacting most production apps.
