Critical Node.js Vulnerability Can Cause Server Crashes via async_hooks Stack Overflow
A severe security flaw affecting "virtually every production Node.js app" that, if properly exploited, may result in a denial-of-service (DoS) condition has been fixed by Node.js through upgrades.
In a Tuesday bulletin, Matteo Collina and Joyee Cheung of Node.js stated that Node.js/V8 makes a best-effort attempt to recover from stack space exhaustion with a catchable error, which frameworks have grown to rely on for service availability.
This attempt would be thwarted by a flaw that only occurs when async_hooks are utilized, which would cause Node.js to exit with 7 without generating a catchable error when user code recursions exhaust the stack space. Applications that rely on unsanitized input to manage their recursion depth are therefore susceptible to denial-of-service attacks.
...


