Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply circular object graph via API input
-
DeliveryApplication passes both objects to deepmerge-ts
-
ExploitRecursive merge re-enters same object pair
-
ExecutionCall stack exhausted synchronously
-
PersistNode.js worker process crashes
-
ImpactService unavailable until supervisor restarts worker
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | Exploitation requires that both of the objects passed to a deepmerge-ts merge function contain circular (self-referential) references at the same property path - for example, |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H) scores 8.2 and reflects network reachability with zero authentication and high availability impact, moderated by AT:P - a specific attack precondition requiring that circular object graphs actually reach the deepmerge-ts API call. This precondition is the critical triage gate: applications that only pass |
| Exploit ScenarioDerived | An attacker submits a request to a Node.js API endpoint whose handler reconstructs user-supplied data into a JavaScript object graph - for instance, a form-body parser or a GraphQL mutation resolver that builds nested objects with back-references. The handler then calls |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Aug 20, 2026
Stack exhaustion denial-of-service in deepmerge-ts crashes Node.js processes when attacker-controlled recursive object graphs are passed to deepmerge(), deepmergeInto(), deepmergeCustom()(), or deepmergeIntoCustom()(). All versions prior to 8.0.0 lack cycle detection in the recursive record-merge routine, allowing two self-referencing objects sharing a key path to drive the process into infinite recursion until the Node.js runtime throws RangeError: Maximum call stack size exceeded. A public proof-of-concept is included in the GitHub security advisory; no CISA KEV listing exists at time of analysis.
Earlier versions of this analysis (1)
Stack exhaustion in deepmerge-ts before v8.0.0 allows any caller supplying self-referential object graphs to crash a Node.js service by triggering unbounded recursion inside the library's merge engine. The public merge API functions - deepmerge, deepmergeInto, deepmergeCustom, and deepmergeIntoCustom - lack visited-object tracking or cycle detection, so when both inputs carry a self-referential property at the same key path, the library re-enters the same object pair forever until V8 raises RangeError: Maximum call stack size exceeded. A publicly available proof-of-concept exploit exists; no CISA KEV listing has been identified, and the fix shipped in v8.0.0 on 2026-08-16.
RemediationAI
Upgrade deepmerge-ts to version 8.0.0 or later, which introduces circular-reference support configurable via a new maxDepth option and a mergeCircularReferences merge-function option; see the security advisory at https://github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mx and the release notes at https://github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0. Note that v8.0.0 is a major release with breaking changes: Map values are now deep-merged by default (opt out with deepmergeCustom({ mergeMaps: false })), DeepMergeMetaMetaData is renamed to DeepMergeMergeInfo, and DeepMergeIntoFunctionUtils is renamed to DeepMergeIntoUtils with no backwards-compatible alias. If an immediate upgrade is not feasible, the specific compensating control is to validate all inputs for circular references before calling any deepmerge-ts function - for example, using a JSON serialize-and-parse round-trip to strip cycles, or running a depth-limited traversal check; the trade-off is added latency and the inability to intentionally merge circular structures.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CWE-674 (Uncontrolled Recursion) describes the root cause: the library's record-merge kernel iterates over enumerable keys and immediately recurses on collected property values with no visited-object tracking, pair tracking, or depth limit. When both merged objects contain a self-referential property at the same path - for example left.self = left and right.self = right - the merge routine re-encounters the same object pair on every recursive call and never converges. The affected package is pkg:npm/deepmerge-ts, all releases before 8.0.0. The condition cannot be triggered by plain JSON deserialization alone because JSON.parse cannot produce circular references; it requires JavaScript object graphs built programmatically or through frameworks that preserve reference cycles.
Know when Node.js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AC:H reflects the meaningful precondition that circular JS object graphs must reach the API; no confidentiality or integrity impact applies.
Primary rating from Vendor (https://github.com/RebeccaStevens/deepmerge-ts).
CVSS VectorVendor: https://github.com/RebeccaStevens/deepmerge-ts
Lifecycle Timeline
3DescriptionCVE.org
Summary
deepmerge() and deepmergeInto() can be crashed with a crafted recursive object graph. When both merged values contain self-references at the same property path, the library recurses until Node throws RangeError: Maximum call stack size exceeded.
Details
Record merging is implemented recursively. For each enumerable key, the library collects the values from every input object and immediately calls the same merge routine on that property.
There is no visited-object tracking, pair tracking, or cycle detection in that recursion. As a result, if two merged records both point back to themselves through the same key path, the merge logic keeps revisiting the same object pair forever.
This is reachable through the real public API:
deepmerge(...)deepmergeCustom(...)(...)deepmergeInto(target, ...)deepmergeIntoCustom(...)(target, ...)
The issue only occurs when recursive object graphs are supplied. Plain JSON alone does not create this condition.
PoC
import { deepmerge, deepmergeInto } from "deepmerge-ts";
const left = {};
left.self = left;
const right = {};
right.self = right;
try {
deepmerge(left, right);
} catch (error) {
console.log(error.name, error.message);
// Expected: the merge should reject or safely handle recursive input without exhausting the stack.
// Vulnerable behavior: RangeError Maximum call stack size exceeded
}
const target = {};
target.self = target;
const source = {};
source.self = source;
try {
deepmergeInto(target, source);
} catch (error) {
console.log(error.name, error.message);
// Expected: the merge should reject or safely handle recursive input without exhausting the stack.
// Vulnerable behavior: RangeError Maximum call stack size exceeded
}Impact
Applications that pass attacker-controlled recursive object graphs into these APIs can be forced into a synchronous crash path. In Node.js services, that can terminate request handling for the affected process or trigger repeated worker restarts until the malicious input is blocked.
Articles & Coverage 1
Executive ViewAI
deepmerge-ts versions prior to 8.0.0 contain a stack exhaustion vulnerability that allows attackers to crash Node.js applications through malicious recursive object inputs, with publicly available exploit code. Organizations using this library in production face immediate denial-of-service risk. Vendor patch is available.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation
A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could
FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote
Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour
Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t
Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete
Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc
An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi
Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin
A vulnerability in NuPoint Messenger (NPM) of Mitel MiCollab through 9.8.0.33 allows an unauthenticated attacker to cond
EUVD-2026-63468
GHSA-ggr8-5vv4-36mx
NVD
CVE.org
EPSS
VulDB
Exploit-DB