CVE-2025-59466·Node.js vulnerability
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.
- Severity
- high
- Software
- Node.js
- Fixed in
- 25.3.0
- Published
- 2026-01-20
Affected versions
From: 25.0.0
Until: 25.3.0
Fixed in: 25.3.0
How to fix this CVE
Update Node.js to version 25.3.0 or later to resolve the uncatchable stack overflow vulnerability in async_hooks. Applications using AsyncLocalStorage or async_hooks.createHook() should prioritize this update, as the vulnerability can cause unrecoverable process crashes during deep recursion scenarios. Test the patched version in a staging environment before deploying to production.
sudo dnf update nodejsDefensia detects this vulnerability
How to check if you are affected
- Check installed Node.js version: node --version or nodejs --version
- Verify if async_hooks or AsyncLocalStorage are in use: grep -r 'async_hooks\|AsyncLocalStorage' /path/to/application/src --include='*.js'
- Search application logs for 'Maximum call stack size exceeded' followed by process termination without uncaughtException handler output: grep -i 'maximum call stack' /var/log/application.log
- Confirm patch installation by running node --version and verifying output is 25.3.0 or later
FAQ
What is CVE-2025-59466?
CVE-2025-59466 is a denial-of-service vulnerability in Node.js where stack overflow errors bypass the uncaughtException handler when async_hooks are enabled, causing the process to crash unrecoverably instead of being caught by error handlers.
Is CVE-2025-59466 being actively exploited?
No, CVE-2025-59466 is not listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits have been disclosed.
What versions of Node.js are affected by CVE-2025-59466?
Node.js versions 25.0.0 through 25.2.0 are vulnerable. Version 25.3.0 and later contain the fix.
How do I check if my server is vulnerable to CVE-2025-59466?
Run `node --version` and confirm the version is between 25.0.0 and 25.2.0. Then check if your application imports async_hooks or AsyncLocalStorage with `grep -r 'require.*async_hooks\|from.*async_hooks\|AsyncLocalStorage' /path/to/app`.
Does Defensia detect CVE-2025-59466?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Node.js is installed on a monitored server, CVE-2025-59466 will appear in your dashboard with remediation steps.
Related Node.js CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-59466. Free for 1 server.
Get started free