CVE Catalog

CVE-2026-40345

HighCVSS 8.2
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.56%

44th percentile - higher than 44% of all known CVEs

Summary

deepmerge-ts prior to 8.0.0 has a vulnerability in the deepmerge, deepmergeCustom, deepmergeInto, and deepmergeIntoCustom APIs that do not track visited objects when recursively merging. 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, causing process crash.

Risk Assessment

An attacker could cause process crash or repeated worker restarts, potentially leading to service unavailability.

Recommendation

Update deepmerge-ts to version 8.0.0 or later. Avoid merging untrusted objects with self-references.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS