ExploitPublished
Critical Node.js Vulnerability Can Cause Server Crashes via async_hooks Stack Overflow
Source The Hacker News
0
Mentioned vulnerabilities
Severity
CriticalRated by Threat Radar
Data as of 21 Jan 2026, 03:06 UTC
What to do
AI-suggested
- Immediately upgrade Node.js to patched versions 20.20.0, 22.22.0, 24.13.0, or 25.3.0 where feasible, prioritizing production environments.
- For legacy or end-of-life Node.js versions that cannot be upgraded, consider isolating vulnerable services or migrating critical workloads to patched environments.
- Implement strict input validation and sanitization to control recursion depth in user-supplied data, preventing exploitation via stack exhaustion.
- Review and audit usage of async_hooks and AsyncLocalStorage in application code and dependencies to identify risky recursion patterns.
- Enhance monitoring and alerting for abnormal process exits (exit code 7) and increased stack usage to detect potential exploitation attempts early.
- Collaborate with framework and APM tool maintainers to apply updates and patches that address async_hooks-related vulnerabilities.
- Employ runtime protections such as process supervisors or container orchestrators configured to automatically restart crashed Node.js processes to minimize downtime.
- Conduct security testing focusing on recursion and stack exhaustion scenarios in asynchronous code paths.
- Educate developers on the risks of unsanitized input controlling recursion and promote secure coding practices around async_hooks usage.
- Maintain an incident response plan tailored to DoS conditions caused by stack overflows to ensure rapid recovery.
Description
Node.js has released updates to fix what it described as a critical security issue impacting "virtually every production Node.js app" that, if successfully exploited, could trigger a denial-of-service (DoS) condition. "Node.js/V8 makes a best-effort attempt to recover from stack space exhaustion with a catchable error, which frameworks have come to rely on for service availability," Node.js's
References
Community reviews
Loading reviews…