CVE-2026-40345
published high CVSS 4.0 · 8.2deepmerge-ts: Stack exhaustion when merging recursive object graphs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| RebeccaStevens | — | deepmerge-ts< 8.0.0 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| RebeccaStevens | deepmerge-ts | < 8.0.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-674 CWE-674: Uncontrolled Recursion
References
4- https://github.com/RebeccaStevens/deepmerge-ts/commit/398492757b3f22a0d7d89b09ce1ae9cd32806c9a
- https://github.com/RebeccaStevens/deepmerge-ts/pull/707
- https://github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0
- https://github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mx
Provider assertions
2GitHub_M · cna
deepmerge-ts: Stack exhaustion when merging recursive object graphs
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a1fec3faedba3b377de6284f3d94a241431f3ddcd60370d6f83b030180db6561
- Ingested
- 23 Sep 2026, 09:13:02 UTC
- Source record
- Official CVE record