Vulnerabilities in pkg:npm/ts-deepmerge
PACKAGECVE-2026-12644 is a MODERATE (CVSS 5.3) denial of service vulnerability (CWE-248: Uncaught Exception) affecting ts-deepmerge libraries in the npm ecosystem. The issue involves prototype method override leads to dos. Remediation is available by upgrading affected packages to version 8.0.0.
pkg:npm/ts-deepmerge
Vulnerability advisories affecting package pkg:npm/ts-deepmerge. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-87mf-gv2c-c62c | CVE-2026-12644 | MODERATE | ts-deepmerge: Prototype Method Override leads to DoS |
| GHSA-7qqq-gh2f-wq76 | CVE-2022-25907 | CRITICAL | ts-deepmerge before 2.0.2 vulnerable to Prototype Pollution |
CVE-2026-12644 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L).
How to Fix CVE-2026-12644
To remediate this vulnerability, upgrade all affected ts-deepmerge dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install ts-deepmerge@8.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ts-deepmerge
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-12644, inspect your project dependencies using npm:
npm ls ts-deepmerge
Analyze the terminal output to locate any version of ts-deepmerge in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.0), your application is affected.
Note: The npm ls ts-deepmerge command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-248: Uncaught Exception, where an exception is thrown from a function, but it is not caught. In ts-deepmerge, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-12644 Affected ts-deepmerge Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ts-deepmerge
|
npm |
< 8.0.0
|
8.0.0
|
References
Frequently Asked Questions
What is CVE-2026-12644?
Which ts-deepmerge versions are affected?
What version fixes CVE-2026-12644?
Is ts-deepmerge affected?
What is the CVSS score of CVE-2026-12644?
What CWE is associated with CVE-2026-12644?
How can I check npm dependencies for CVE-2026-12644?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-87mf-gv2c-c62c",
"modified" : "2026-06-19T21:41:52Z",
"published" : "2026-06-19T06:31:56Z",
"aliases" : [ "CVE-2026-12644" ],
"summary" : "ts-deepmerge: Prototype Method Override leads to DoS",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ts-deepmerge"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "8.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-12644"
}, {
"type" : "WEB",
"url" : "https://github.com/voodoocreation/ts-deepmerge/commit/305a05831a462fb2c353d3cbbff55a0733286f8c"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/igorg1312/775fa00114c4d47df6ae0551779ab407"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/voodoocreation/ts-deepmerge"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-TSDEEPMERGE-17339141"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-248" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-19T21:41:52Z",
"nvd_published_at" : "2026-06-19T06:17:01Z"
}
}