Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify network-exposed endpoint accepting JSON input
-
DeliveryCraft payload with Object.prototype method key mapped to non-function (e.g., {"toString": 1})
-
ExploitSubmit payload to application
-
Installts-deepmerge merges without UNSAFE_KEYS validation
-
C2Merged object has toString overwritten with non-callable
-
ExecuteString-context operation triggers TypeError
-
ImpactApplication process crashes (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Exception handling completeness
|
| Exploitation Conditions | Exploitation requires two conditions to be simultaneously true: first, the application must pass user-controlled input - without stripping Object.prototype method names - into ts-deepmerge's merge() function; second, a code path must subsequently perform a string-context operation on the merged output object (template literal, string concatenation, console.log, or similar). If the merged result is consumed only as a structured object with no string coercion, the corruption exists in memory but does not trigger the crash. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) indicates no authentication, no user interaction, no special network conditions, and no non-default configuration are required on the network side - the only prerequisite is that the vulnerable merge code path is reachable via the network interface. The critical limiting factor is application architecture: libraries or microservices that merge only internally-generated, schema-validated, or statically-defined objects are not at risk regardless of network exposure. |
| Impact | The CVSS 4.0 base vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N) yields a score of 5.5, reflecting a network-reachable, low-complexity, unauthenticated attack with limited availability impact confined to the vulnerable system and no confidentiality or integrity impact - fully consistent with a targeted DoS primitive rather than a code execution path. The E:P supplemental metric and the public GitHub Gist confirm working exploit code exists, which elevates practical risk above theoretical for exposed applications. No EPSS data was provided, so statistical exploitation probability cannot be quantified; however, the combination of a trivial payload structure and available POC code suggests meaningful opportunistic risk for any application that exposes a merge endpoint to untrusted input. The absence of a CISA KEV listing means mass exploitation has not been confirmed. Real-world impact is highly architecture-dependent: applications that only merge internally-trusted or schema-validated objects are not meaningfully exposed, while applications that pass raw user-supplied JSON directly into merge() are immediately vulnerable. This is a genuine priority for the latter category despite the moderate base score. |
| Exploit ScenarioDerived | An attacker identifies an API endpoint - such as a settings update, profile merge, or configuration patch route - that accepts arbitrary JSON and internally passes user input to ts-deepmerge's merge() function without key sanitization. The attacker submits a minimal payload such as {"toString": 1} in the request body. After the merge executes on the server, the next line of application code that implicitly converts the merged object to a string (a logging statement, a template literal in an error handler, or a framework middleware that serializes objects) throws a TypeError, crashing the Node.js worker or process. A working proof-of-concept demonstrating this crash is publicly available at https://gist.github.com/igorg1312/775fa00114c4d47df6ae0551779ab407. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 19, 2026
Uncaught Exception in ts-deepmerge before 8.0.0 allows unauthenticated remote attackers to crash Node.js applications by supplying JSON payloads that contain Object.prototype method names (e.g., toString, valueOf) mapped to non-function values, causing any subsequent string-context operation on the merged object to throw a TypeError. The vulnerability is distinct from classic prototype pollution - it does not escalate privileges or leak data, but reliably corrupts the merged object's callable methods, making DoS trivially achievable against any network-exposed merge endpoint that accepts untrusted input. A public proof-of-concept exists (GitHub Gist, Snyk SNYK-JS-TSDEEPMERGE-17339141), and the CVSS 4.0 E:P supplemental metric confirms exploit code is available; no confirmed active exploitation (CISA KEV) has been identified at time of analysis.
RemediationAI
Upgrade ts-deepmerge to version 8.0.0 or later, which introduces the UNSAFE_KEYS blocklist covering __proto__, constructor, prototype, toString, valueOf, hasOwnProperty, isPrototypeOf, propertyIsEnumerable, and toLocaleString. The upstream fix is available at https://github.com/voodoocreation/ts-deepmerge/commit/305a05831a462fb2c353d3cbbff55a0733286f8c and the Snyk advisory is at https://security.snyk.io/vuln/SNYK-JS-TSDEEPMERGE-17339141. If an immediate upgrade is not feasible, apply input sanitization before calling merge(): use a JSON schema validator (e.g., ajv with a strict allowlist of permitted keys) to reject any payload containing the nine unsafe key names - this adds a dependency but provides reliable defense. A simpler compensating control is to filter user-supplied objects with a recursive function that deletes keys matching the unsafe set before passing data to merge(); the trade-off is that this silently drops fields, which may introduce data-loss bugs if not handled explicitly. Wrapping merge() calls in try/catch prevents process crashes but does not fix the underlying object corruption and must not be treated as a security remediation.
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
ts-deepmerge is a TypeScript/JavaScript npm library for recursively merging plain objects, widely used in Node.js applications for configuration merging and data aggregation. The root cause class is CWE-248 (Uncaught Exception): during key iteration in the merge() function, the library previously blocked only three dangerous keys - __proto__, constructor, and prototype - the classic prototype pollution trifecta. It failed to block Object.prototype method keys such as toString, valueOf, hasOwnProperty, isPrototypeOf, propertyIsEnumerable, and toLocaleString. When a caller merges a user-controlled object containing, for example, {"toString": 42}, the merged output object has its toString property overwritten with the integer 42. Any subsequent implicit string coercion - template literals, string concatenation, console.log, JSON serialization paths that call toString - invokes the property as a function, finds a non-callable primitive, and throws a TypeError. Because ts-deepmerge does not catch this, the exception propagates unhandled and crashes the process. The fix commit (305a058 on voodoocreation/ts-deepmerge) introduces a UNSAFE_KEYS Set containing all nine dangerous key names and gates every key assignment through a membership check. The affected CPE is cpe:2.3:a:n/a:ts-deepmerge:*:*:*:*:*:*:*:*.
Know when N A 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:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Network-reachable with no authentication required (PR:N); impact is limited to a process crash with no data exposure or integrity change, so C:N/I:N/A:L.
Primary rating from Vendor (snyk).
CVSS VectorVendor: snyk
Lifecycle Timeline
2DescriptionCVE.org
Versions of the package ts-deepmerge before 8.0.0 are vulnerable to Uncaught Exception due to the improper handling of built-in Object.prototype methods (such as toString, valueOf). When user-controlled input contains these keys with non-function values, the resulting merged object becomes broken - any string context operation throws a TypeError, crashing the application.
Blast Radius
ecosystem impact- 242 npm packages depend on ts-deepmerge (62 direct, 184 indirect)
Ecosystem-wide dependent count for version 8.0.0.
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.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-37991
GHSA-87mf-gv2c-c62c
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB