Skip to main content

ts-deepmerge EUVDEUVD-2026-37991

| CVE-2026-12644 MEDIUM
Uncaught Exception (CWE-248)
2026-06-19 snyk GHSA-87mf-gv2c-c62c
5.5
CVSS 4.0 · Vendor: snyk
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify network-exposed endpoint accepting JSON input
  2. Delivery
    Craft payload with Object.prototype method key mapped to non-function (e.g., {"toString": 1})
  3. Exploit
    Submit payload to application
  4. Install
    ts-deepmerge merges without UNSAFE_KEYS validation
  5. C2
    Merged object has toString overwritten with non-callable
  6. Execute
    String-context operation triggers TypeError
  7. Impact
    Application 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

ts-deepmerge 0 <8.0.0

Affected Packages

npm ts-deepmerge fix: 8.0.0

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

Vendor (snyk) PRIMARY 5.5 MEDIUM
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
vuln.today AI 5.3 MEDIUM

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (snyk).

CVSS VectorVendor: snyk

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jun 19, 2026 - 08:46 EUVD
CVSS changed
Jun 19, 2026 - 06:22 NVD
5.3 (MEDIUM) 5.5 (MEDIUM)

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 242 npm packages depend on ts-deepmerge (62 direct, 184 indirect)

Ecosystem-wide dependent count for version 8.0.0.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy