Technical impact
The mergeIncrementalResult helper in GraphQL Tools fails to enforce primitive type validation on path segments derived from an incremental GraphQL response. A non‑primitive segment bypasses strict checks on "__proto__", "constructor", and "prototype" and can be coerced during property access, allowing an attacker-controlled value to be written to Object.prototype. When an untrusted @defer or @stream transport result reaches the merge helper, the attacker may inject properties onto the global prototype, which can in turn lead to arbitrary code execution, privilege escalation, or other widespread compromise of the Node.js process.
Affected Systems
The vulnerability affects the GraphQL Tools library (ardatan) in package versions 10.10.1 through 12.0.2. The affected code resides in packages/utils/src/mergeIncrementalResult.ts and is exercised when consumers merge untrusted incremental results from GraphQL Defer or Stream features. All projects that depend on any of these releases and directly use mergeIncrementalResult are impacted.
Risk and Exploitability
The CVSS score of 8.4 classifies this flaw as high severity. The EPSS score is not reported, and the vulnerability is not listed in the CISA KEV catalog, indicating it may not yet be widely exploited in the wild. The likelihood of exploitation depends on the presence of untrusted incremental data in client applications; an attacker who can supply or manipulate a GraphQL response with forged path segments can achieve prototype pollution, enabling multiple downstream attacks. The typical attack vector is remote, via the network, and requires the ability to inject malicious GraphQL payloads into the application’s data transport.
Github GHSA