Skip to content
DoS Disclosed report Advanced CVE-2025-59466

Uncatchable "Maximum call stack size exceeded" error on Node.js via async_hooks leads to process crashes bypassing error handlers

A bug in Node.js error handling makes 'Maximum call stack size exceeded' errors uncatchable when async_hooks.createHook() is enabled, so the process terminates instead of reaching the uncaughtException handler. Applications using AsyncLocalStorage or async_hooks.createHook() can be crashed by deep recursion, causing denial of service.

aaron_vercel Follow

Originally disclosed on HackerOne

Medium 5.9 View original
  • Triaged in 2 days
  • Fixed in 36 days
  • Disclosed after 2 months

Summary by the program

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.

The original report as published on HackerOne, by aaron_vercel. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the async_hooks machinery interferes with how stack-overflow errors are propagated, so the uncaughtException handler is bypassed.

Impact

Applications using AsyncLocalStorage or async_hooks.createHook() could be crashed by deep recursion, causing denial of service.

What the attacker needed

Async_hooks.createHook() or AsyncLocalStorage enabled; attacker can trigger deep recursion

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Node.js normally lets a program catch unexpected errors so it can log them or keep running. This report shows that when a particular tracking feature is switched on, a stack overflow error skips that safety net and the whole program shuts down. An attacker who can make the program recurse deeply can therefore crash it.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.