CVE-2026-40345CWE-674

CVE-2026-40345

published August 20, 2026

CVSS
8.2
EPSS
1%
Percentile
43.6
In the wild
Unconfirmed
What it is

deepmerge-ts is a typescript library providing functionality to deep merging of javascript objects. Prior to 8.0.0, the deepmerge, deepmergeCustom, deepmergeInto, and deepmergeIntoCustom APIs do not track visited objects or object pairs when recursively merging records. When two input values contain self-references at the same property path, the merge logic repeatedly revisits the same pair until Node.js raises RangeError: Maximum call stack size exceeded. Applications that merge attacker-controlled recursive object graphs can synchronously crash the affected process or cause repeated worker restarts. Plain JSON input alone cannot create the recursive graph required to trigger the issue. This issue is fixed in version 8.0.0.

The record
Technical detail
CVSS
8.2 · NONE
CVSS v4.0
8.2 · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
EPSS
0.00524 · 43.6th percentile
Weakness
CWE-674 · Uncontrolled Recursion
Published
2026-08-20T21:17Z
References (5)
EPSS history
Timeline
  • 20 AUG 16:33Z
    deepmerge-ts: Stack exhaustion when merging recursive object graphs
    cvelistv5