Vulnerabilities in pkg:npm/@graphql-tools/utils
PACKAGECVE-2026-104852 is a HIGH graphql tools has prototype pollution vulnerability (CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')) affecting @graphql tools/utils libraries in the npm ecosystem. The issue involves graphql tools has prototype pollution in well-established utility function `mergedeep`. Remediation is available by upgrading affected packages to version 12.0.1.
pkg:npm/@graphql-tools/utils
Vulnerability advisories affecting package pkg:npm/@graphql-tools/utils. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7mx3-vvmw-hjmv | CVE-2026-104852 | HIGH | GraphQL Tools has prototype pollution in well-established utility function `mergeDeep` |
CVE-2026-104852 at a Glance
How to Fix CVE-2026-104852
To remediate this vulnerability, upgrade all affected @graphql tools/utils 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 @graphql-tools/utils@12.0.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @graphql-tools/utils
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-104852, inspect your project dependencies using npm:
npm ls @graphql-tools/utils
Analyze the terminal output to locate any version of @graphql tools/utils in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 12.0.1), your application is affected.
Note: The npm ls @graphql-tools/utils 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-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution'), where the product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype. In @graphql tools/utils, 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-104852 Affected @graphql tools/utils Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@graphql-tools/utils
|
npm |
< 12.0.1
|
12.0.1
|
References
Frequently Asked Questions
What is CVE-2026-104852?
Which @graphql tools/utils versions are affected?
What version fixes CVE-2026-104852?
Is @graphql-tools/utils affected?
What CWE is associated with CVE-2026-104852?
How can I check npm dependencies for CVE-2026-104852?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7mx3-vvmw-hjmv",
"modified" : "2026-10-05T22:56:47Z",
"published" : "2026-10-05T22:56:46Z",
"aliases" : [ "CVE-2026-104852" ],
"summary" : "GraphQL Tools has prototype pollution in well-established utility function `mergeDeep`",
"details" : "Closed by https://github.com/ardatan/graphql-tools/pull/8423\nMitigated in Hive Gateway by https://github.com/graphql-hive/gateway/pull/2600\n\nA client can alias fields to `constructor`, `__proto__` or `prototype` so that the response keys from two subgraphs collide on those names during result merging. Because `mergeDeep` recursed through inherited properties, the merge walked `{}.constructor` to `Object`, then `Object.__proto__` to `Function.prototype`, and wrote a subgraph-supplied value over `Function.prototype.call`, breaking every subsequent request in the process until restart. This is remotely triggerable by an unauthenticated client with a single query against any supergraph that merges an object from two subgraphs, which is the ordinary `@shareable` or entity case, so it is a denial of service rather than a theoretical hardening issue.\n\n\n```graphql\n{\n shared {\n fieldA\n constructor: fieldB {\n __proto__: child {\n call: value\n }\n }\n }\n}\n```",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@graphql-tools/utils"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "12.0.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 12.0.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ardatan/graphql-tools/security/advisories/GHSA-7mx3-vvmw-hjmv"
}, {
"type" : "WEB",
"url" : "https://github.com/ardatan/graphql-tools/pull/8423"
}, {
"type" : "WEB",
"url" : "https://github.com/graphql-hive/gateway/pull/2600"
}, {
"type" : "WEB",
"url" : "https://github.com/ardatan/graphql-tools/commit/0b9529f1988fd36186a7c106a6efe0356f1b7f2e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ardatan/graphql-tools"
}, {
"type" : "WEB",
"url" : "https://github.com/ardatan/graphql-tools/releases/tag/@graphql-tools/utils@12.0.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-1321" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-05T22:56:46Z",
"nvd_published_at" : null
}
}