{"cve":"CVE-2026-40345","nvd":{"published":"2026-08-20T17:17:29.783","modified":"2026-10-18T20:10:00.110","status":"Deferred","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.","cvss_v4":{"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","score":8.2},"cvss_v3":null,"cwes":["CWE-674"],"references":["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","https://github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mx"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:49:38.260478770+00:00"},"epss":{"cve":"CVE-2026-40345","score":0.00524,"percentile":0.44146,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-ggr8-5vv4-36mx","url":"https://osv.dev/vulnerability/GHSA-ggr8-5vv4-36mx","summary":"DeepmergeTS has stack exhaustion when merging recursive object graphs","modified":"2026-09-10T03:51:14.089937520Z","packages":[{"ecosystem":"npm","name":"deepmerge-ts","purl":"pkg:npm/deepmerge-ts","ranges":["<8.0.0"],"fixed":["8.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}