Vulnerabilities in pkg:npm/@graphql-tools/utils

PACKAGE
Advisory Identifier: GHSA-7mx3-vvmw-hjmv
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@graphql-tools/utils

1 Known Advisory Record(s)

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

CVE Identifier CVE-2026-104852
GHSA Identifier GHSA-7mx3-vvmw-hjmv
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Affected Product @graphql tools/utils
Package Ecosystem npm
Published Date
Last Updated

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.

@graphql-tools/utils fixed: 12.0.1
npm install @graphql-tools/utils@12.0.1
Verify Direct and Transitive Dependencies

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

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. ```graphql { shared { fieldA constructor: fieldB { __proto__: child { call: value } } } } ```

CVE-2026-104852 Affected @graphql tools/utils Versions

1 component(s)
Fixed Versions:
12.0.1
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?
CVE-2026-104852 is a security vulnerability in @graphql tools/utils involving GraphQL Tools has prototype pollution in well-established utility function `mergeDeep` under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution').
Which @graphql tools/utils versions are affected?
Affected versions include releases prior to 12.0.1 across affected packages: @graphql-tools/utils.
What version fixes CVE-2026-104852?
Upgrading to 12.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @graphql-tools/utils affected?
Yes, @graphql-tools/utils is affected in releases prior to 12.0.1. Upgrade your dependency to 12.0.1 or later.
What CWE is associated with CVE-2026-104852?
CVE-2026-104852 is classified under CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (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.).
How can I check npm dependencies for CVE-2026-104852?
Run the dependency tree command: 'npm ls @graphql-tools/utils'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}