Skip to main content
← All vulnerabilities
CVE-2026-40345GHSA-GGR8-5VV4-36MX

deepmerge-ts: Stack exhaustion when merging recursive object graphs

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.0.0
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • RebeccaStevens deepmerge-ts

    fixed in 8.0.0

  • deepmerge-tsnpm

    fixed in 8.0.0

References 5

GitHub · RebeccaStevens/deepmerge-ts

GitHub · Jvr2022/CVE-2026-40345