Advisory

GHSA-7mx3-vvmw-hjmv

Also known as: 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
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
      }
    }
  }
}

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-10-05 22:56 UTC
Modified
2026-10-05 23:15 UTC

Affected packages and fixes

@graphql-tools/utils

npm · All systems

Affected

  • introduced 0, fixed 12.0.1 (semver)

Fixed versions

12.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences