5.9Medium

CVE-2025-59466

nodejs node Published: (10 months ago)

Description

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.

Weakness (CWE): CWE-248

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
nodejs node 20.19.6 – ≤ 20.19.6, 22.21.1 – ≤ 22.21.1, 24.12.0 – ≤ 24.12.0, 25.2.1 – ≤ 25.2.1, 8.0 – < 8.*, 9.0 – < 9.*, 10.0 – < 10.*, 11.0 – < 11.*, 12.0 – < 12.*, 13.0 – < 13.*, 14.0 – < 14.*, 15.0 – < 15.*, 16.0 – < 16.*, 17.0 – < 17.*, 18.0 – < 18.*
nodejs node.js 20.0.0 – < 20.20.0

References and patches

CPE matches (NVD) (4)

  • cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* ≥ 20.0.0 < 20.20.0
  • cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* ≥ 22.0.0 < 22.22.0
  • cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* ≥ 24.0.0 < 24.13.0
  • cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:* ≥ 25.0.0 < 25.3.0