CVE-2026-40345
deepmerge-ts: Stack exhaustion when merging recursive object graphs
Reported by github_m · Published August 20, 2026
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| RebeccaStevens | deepmerge-ts | < 8.0.0 |
| RebeccaStevens | deepmerge-ts | 0 |
| chainguard | langfuse-4 | 0 |
| npm | deepmerge-ts | 0 |
| chainguard | langfuse-fips-4 | 0 |
| wolfi | langfuse-3 | 0, 0 |
| chainguard | langfuse-fips-3 | 0 |
| chainguard | langfuse-3 | 0, 0 |
| chainguard | authentik-fips-2026.5 | 0 |
| chainguard | authentik-2026.5 | 0 |
Timeline
- Aug 17, 2026 CVE Published
- Aug 21, 2026 CVE Updated
- Aug 22, 2026 Coalition ESS Score
- Aug 24, 2026 EPSS Score (24 in total, the first dated here)
- Sep 3, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-40345
vulnetix vdb fixes CVE-2026-40345
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-40345/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mx x_refsource_CONFIRM
- https://github.com/RebeccaStevens/deepmerge-ts/pull/707 x_refsource_MISC
- https://github.com/RebeccaStevens/deepmerge-ts/commit/398492757b3f22a0d7d89b09ce1ae9cd32806c9a x_refsource_MISC
- https://github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-40345 advisory
- https://github.com/advisories/GHSA-ggr8-5vv4-36mx advisory