Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

High · 8.4 Node.js & npm GHSA-c4qx-w738-7hr3 CVE-2026-114604

Prototype Pollution Vulnerability Fixed in GraphQL Tools (@graphql-tools/utils)

A prototype pollution flaw in @graphql-tools/utils allows a malicious or compromised upstream GraphQL incremental response to write attacker-controlled properties to Object.prototype. Fixed in version 12.0.2.

By PatchBriefing ·

Produced automatically from official sources with the help of AI. How we work →

Synthesized by AI from 4 sources · updated 1 week ago

AI summary

A vulnerability has been identified in @graphql-tools/utils, a package used for building, stitching, and mocking GraphQL schemas. The issue allows prototype pollution through the handling of incremental GraphQL responses and has been fixed by the maintainers in version 12.0.2.

What happened

A prototype pollution vulnerability was identified in the mergeIncrementalResult helper of @graphql-tools/utils. The function passes path segments from an incremental GraphQL result to an internal key-path setter without validating at runtime that these segments are primitive values. As a result, a non-primitive path segment can bypass the strict comparisons normally used to block dangerous keys such as __proto__, constructor, and prototype. During subsequent property access, the segment is coerced in a way that allows attacker-controlled properties to be written to Object.prototype in the consuming Node.js process.

Technical cause

The root cause lies in packages/utils/src/mergeIncrementalResult.ts, where incrementalResult.path segments are used directly with setObjectKeyPath. Because the code does not enforce that each path segment is a primitive type before performing its key comparisons, an object-typed segment can evade the __proto__, constructor, and prototype checks. When the value is later coerced during property assignment, it results in modification of Object.prototype rather than a scoped object, which is the defining characteristic of a prototype pollution vulnerability (CWE-1321).

Why it matters

This vulnerability is reachable whenever an application using @graphql-tools/utils merges incremental GraphQL transport results, such as those produced by @defer or @stream directives, that originate from an untrusted or compromised upstream source. Since Object.prototype is shared across the entire Node.js process, successfully polluting it can affect the behavior of unrelated code paths within the same application, potentially leading to denial of service or other unintended behavior depending on how the application uses object properties elsewhere.

Who is affected

Any project depending on @graphql-tools/utils that merges incremental GraphQL responses (@defer/@stream) from an upstream GraphQL service that is not fully trusted is affected, specifically where that upstream response could be malicious or has been compromised.

Affected versions

@graphql-tools/utils versions from 10.10.1 up to and including 12.0.1 are affected. Version 12.0.2 contains the fix.

Fixes and mitigation

The maintainers have resolved this issue in @graphql-tools/utils version 12.0.2. No other mitigations are described in the available advisory information.

Recommended action

Update @graphql-tools/utils to version 12.0.2 or later. Projects that currently use any version from 10.10.1 up to and including 12.0.1 should prioritize this upgrade, particularly if incremental GraphQL responses (@defer/@stream) are merged from sources that cannot be fully trusted.

PatchBriefing score

8.4 / 10 · High

Official CVSS: 8.4

CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS 0.0058 (42 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

@graphql-tools/utils >= 10.10.1, <= 12.0.1
vulnerable
@graphql-tools/utils ≥ 10.10.1 < 12.0.2
vulnerable
≥ 12.0.2
patched

Reported fixes

The maintainers have resolved this issue in @graphql-tools/utils version 12.0.2. No other mitigations are described in the available advisory information.

How this was built

4 source records were collected, matched and used to prepare the report above.

  • GitHub Advisory Database database
  • OSV.dev database
  • NVD (NIST) database
  • CVE.org database
Unified report
Prototype Pollution Vulnerability Fixed in GraphQL Tools (@graphql-tools/utils)
1 article · 4 sources cited
Revision history
  1. Generated
  2. Published
  3. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email