Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-40345— deepmerge-ts: Stack exhaustion when merging recursive object graphs

Quick assessment

Affected
RebeccaStevens deepmerge-ts
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

deepmerge-ts 是一个 TypeScript 库,提供了对 JavaScript 对象进行深度合并的功能。在 8.0.0 版本之前,deepmerge、deepmergeCustom、deepmergeInto 和 deepmergeIntoCustom 这些 API 在递归合并记录(records)时,不会追踪已访问过的对象或对象对。当两个输入值在同一属性路径上包含自引用(self-references)时,合并逻辑会反复访问相同的对象对,直到 Node.js 抛出 “RangeError: Maxim

CVSS 8.2 · High EPSS 0.56% · P44

Possible ATT&CK Techniques 1 AI

T1496 · Resource Hijacking

Affected Version Matrix 1

VendorProduct Version RangeStatus
RebeccaStevens deepmerge-ts < 8.0.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-40345

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
deepmerge-ts: Stack exhaustion when merging recursive object graphs
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
未经控制的递归
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
RebeccaStevens deepmerge-ts < 8.0.0 -

II. Public POCs for CVE-2026-40345

# POC Description Source Link Shenlong Link
AI-Generated POC Premium
Qwen3.6-35B-A3B · 7933 chars
Pro+ exclusive includes:
Vulnerability reproduction recording (real sandbox build + trigger, exclusive)
In-depth vulnerability mechanism
Trigger conditions & impact
Full executable POC code
Exploit chain & mitigation
POC zip download
100+ AI POC generations per month

III. Intelligence Information for CVE-2026-40345

登录查看更多情报信息。

Vendor Advisories for CVE-2026-40345 (1)

Other References for CVE-2026-40345 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-40345

No comments yet


Leave a comment