CVE-2026-104852
CVE-2026-104852 · GraphQL Tools has prototype pollution in well-established utility function `mergeDeep`
This page contains facts from public vulnerability sources. Check the original advisory before updating.
GraphQL Tools provides utilities for building, stitching, and mocking GraphQL schemas. Prior to 12.0.1, the GraphQL Tools utils package's mergeDeep function follows inherited properties while recursively merging source objects and does not exclude __proto__, constructor, or prototype keys. An unauthenticated GraphQL client can alias fields to those names so responses from two subgraphs collide during ordinary supergraph result merging, causing mergeDeep to traverse Object and Function prototypes and overwrite Function.prototype.call with a subgraph-supplied value. This breaks subsequent requests in the process until restart. This issue is fixed in version 12.0.1.
CVSS 8.2 · High · EPSS 0.4% · Fix available
- Published
- Updated
Stack: node
Affected products and versions
graphql-tools
- Versions
- < 12.0.1: Affected
No fix published
@graphql-tools/utils npm
- Affected ranges
- SEMVER: < 12.0.1
Update to 12.0.1
Original sources
- https://github.com/ardatan/graphql-tools/security/advisories/GHSA-7mx3-vvmw-hjmv
- https://github.com/ardatan/graphql-tools/pull/8423
- https://github.com/graphql-hive/gateway/pull/2600
- https://github.com/ardatan/graphql-tools/commit/0b9529f1988fd36186a7c106a6efe0356f1b7f2e
- https://github.com/ardatan/graphql-tools/releases/tag/@graphql-tools/[email protected]
- https://nvd.nist.gov/vuln/detail/CVE-2026-104852