Skip to content
OpenAdvisories
High · 8.2 Public exploit CVE-2026-40345 EUVD-2026-63468GHSA-ggr8-5vv4-36mx

deepmerge-ts: Stack exhaustion when merging recursive object graphs

Published Aug 20, 2026 · Updated Aug 21, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
RebeccaStevens deepmerge-ts < 8.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling jitsucom-jitsu-console No fix yet —
Wolfi rolling langfuse-3 +1 3.225.5-r0 —
Wolfi rolling langfuse-3-compat 3.225.7-r6 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
npm deepmerge-ts < 8.0.0 8.0.0 GHSA-ggr8-5vv4-36mx

Advisories 1

References