CVE-2026-104852
GraphQL Tools has prototype pollution in well-established utility function `mergeDeep`
Description
Closed by https://github.com/ardatan/graphql-tools/pull/8423 Mitigated in Hive Gateway by https://github.com/graphql-hive/gateway/pull/2600
A 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.
{
shared {
fieldA
constructor: fieldB {
__proto__: child {
call: value
}
}
}
}
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm.at.graphql-tools » utilsvia npm @graphql-tools/utils | < 12.0.1 | 12.0.1 |
| org.webjars.npm » graphql-tools__utilsvia npm @graphql-tools/utils | < 12.0.1 | 12.0.1 |
Blast radius
100% of the dependent artifacts (1) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 1 |
Most used dependents
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Package | ardatan/graphql-tools | github.com |
| Web | ardatan/graphql-tools advisory GHSA-7mx3-vvmw-hjmv | github.com |
| Web | ardatan/graphql-tools pull request #8423 | github.com |
| Web | graphql-hive/gateway pull request #2600 | github.com |
| Web | ardatan/graphql-tools commit 0b9529f | github.com |
| Web | ardatan/graphql-tools/releases/tag/@graphql-tools/utils@12.0.1 | github.com |
