{"id":"CVE-2026-40345","published":"2026-08-20T16:33:52Z","modified":"2026-08-21T16:28:15Z","title":"deepmerge-ts: Stack exhaustion when merging recursive object graphs","vendor":"RebeccaStevens","product":"deepmerge-ts","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00524,"percentile":0.4534,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RebeccaStevens/deepmerge-ts/pull/707","tags":["x_refsource_MISC"]},{"url":"https://github.com/RebeccaStevens/deepmerge-ts/commit/398492757b3f22a0d7d89b09ce1ae9cd32806c9a","tags":["x_refsource_MISC"]},{"url":"https://github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":9.07},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.74}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-08-17","earliestUrl":"https://github.com/Jvr2022/CVE-2026-40345","repos":[{"name":"Jvr2022/CVE-2026-40345","url":"https://github.com/Jvr2022/CVE-2026-40345","stars":6,"created":"2026-08-17"}]},"first":{"date":"2026-08-17","source":"PoC-in-GitHub","url":"https://github.com/Jvr2022/CVE-2026-40345"},"provenance":"source"},"vendorSlug":"rebeccastevens","affectedVersions":[{"vendor":"RebeccaStevens","product":"deepmerge-ts","versions":["< 8.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-08-21T16:27:55.525819Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"deepmerge-ts","vulnerableRanges":["<8.0.0"],"patched":["8.0.0"],"from":["GHSA-ggr8-5vv4-36mx"],"provenance":"source"}],"summary":{"text":"The deepmerge-ts TypeScript library, in its deepmerge, deepmergeCustom, deepmergeInto, and deepmergeIntoCustom APIs before version 8.0.0, fails to track visited objects during recursive record merging, so it repeatedly revisits the same pair when two inputs contain self-references at the same property path. An attacker who can supply recursive object graphs to an application that merges them, which plain JSON input alone cannot produce, can synchronously crash the process with a stack overflow or cause repeated worker restarts, without needing authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:45Z"},"euvd":{"id":"EUVD-2026-63468","exploited":false,"provenance":"source"}}