Not ratedCVE-2026-114604

    GraphQL Tools: Prototype pollution in mergeIncrementalResult via non-primitive path segments (CVE-2026-114604)

    Published Sources: OSV, Hersteller

    What is affected, what to do

    Update Utils to version 12.0.2.

    Affected
    • Utils 10.10.1..*
    • Utils *..>= 10.10.1, <= 12.0.1
    Fixed in
    • Utils 12.0.2

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    —

    Priority

    No value is available for this vulnerability.

    —

    CVSS v3

    No value is available for this vulnerability.

    —

    EPSS score

    No value is available for this vulnerability.

    Show all metrics
    Severity
    Not rated
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    30.00 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    no public PoC known
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-1321

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    Handle the vulnerability in regular vulnerability handling under Art. 21(2)(e) NIS2.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    Description

    Report metadata

    FieldValue
    Package@graphql-tools/utils (npm, pkg:github/ardatan/graphql-tools)
    Repositoryhttps://github.com/ardatan/graphql-tools
    ComponentmergeIncrementalResult / setObjectKeyPath (packages/utils/src/mergeIncrementalResult.ts)
    Vulnerability classPrototype pollution (via unvalidated object path traversal)
    Verified againstSource read at 134d67ae36a559651f43ec7fe4a9da76f4a00c2b; master HEAD ccca0ff0dc8ea20726fd116b2f19a38709c30e62; published npm builds 10.10.0, 10.10.1, 11.0.0, 12.0.0, 12.0.1
    Affected versions@graphql-tools/utils >= 10.10.1 through the scanned 12.0.0 source; introduced by fbb58b51c4993ba9680ce6c2ef7203ab3a142713 ("remove dset dependency"). 12.0.1 also reproduces. 10.10.0 does not.
    API surfacePublic, documented export (packages/utils/src/index.ts:55)
    Affected in default configurationYes — no options are involved; the forbidden-key check in setObjectKeyPath is the only defense and it is on by default

    Summary

    mergeIncrementalResult merges an incremental GraphQL response part into an accumulated execution result by walking ['data', ...incrementalResult.path] and assigning at the resolved location. setObjectKeyPath tries to reject dangerous segments with strict string equality against '__proto__', 'constructor' and 'prototype' (lines 50-52 and 60-62), but it never validates that a path segment is a primitive string or number. A JSON path segment such as ["__proto__"] is an array object, so ["__proto__"] !== '__proto__' and the guard passes; the very next statement does current[key], whose ToPropertyKey coercion turns that array into the string key "__proto__" and resolves Object.prototype. The following, innocuous-looking segment is then assigned directly onto Object.prototype.

    In a consuming app, incrementalResult is the response part being merged — data parsed from an upstream @defer/@stream multipart or incremental-delivery response from another GraphQL server or transport. The ExecutionResult TypeScript annotation is not a runtime check, so a malicious, compromised, or MITM'd upstream can choose the path value and therefore choose global prototype keys and values in the gateway or client process.

    Comparable paths through the same helper, for contrast:

    • Plain string segment "__proto__" -> blocked by strict equality, lines 50-52 (confirmed by a control case in testing)
    • Array segment ["__proto__"] -> unsafe: passes the guard at lines 50-52, then coerced to the __proto__ key at lines 53-57
    • Same operation in 10.10.0 and earlier, which used dset -> not exploitable (0/5 attack payloads succeeded)

    Impact

    A malicious incremental GraphQL response can add arbitrary properties with attacker-chosen values to Object.prototype in the consuming Node.js process. Because every plain object inherits from it, this can change authorization and configuration checks and the behavior of unrelated code elsewhere in the process — a networked PoC set Object.prototype.isAdmin = true and Object.prototype.ownerEmail, after which a consumer-style check opts.isAdmin === true on a freshly created {} returned true.

    The delta over the safe behaviour: without this traversal flaw, a hostile upstream response can only influence the GraphQL data returned to the caller — a bounded, in-band effect. With path: [["__proto__"], "isAdmin"], the write lands on Object.prototype, escaping the response object entirely and affecting objects created later and code that never touches the response.

    Scoring note: this report deliberately carries no CVSS vector. No score was produced for it, and exploitability depends on the consuming application's data flow — specifically whether it merges incremental results from an upstream it does not control, and how much it relies on inherited defaults. Consumers who are not affected: anything on @graphql-tools/utils 10.10.0 or earlier (the dset-based implementation blocked all tested payloads); processes that freeze Object.prototype; and consumers that runtime-validate incremental path segments to primitives before calling the helper. Note also that graphql-tools' own production code does not call mergeIncrementalResult directly — it is exported for consumers assembling incremental transport results.

    Preconditions

    1. The consumer calls the public mergeIncrementalResult helper on incremental payloads received from another GraphQL server or other untrusted transport. No special options are needed.
    2. The incremental payload is not runtime-validated to contain only primitive string/number path segments before the call. This is the default: packages/utils/src/index.ts:55 exports the helper directly, with no runtime validation and no documented warning, and the behaviour is not documented as a caller responsibility.
    3. The attacker can return a malformed incremental path value — i.e. controls, has compromised, or can MITM the upstream subgraph/transport.
    4. The process has not frozen Object.prototype.

    This requires no non-standard usage, monkey-patching, or unusual configuration: the documented happy path of the exported helper is affected. The only defense present in the code is the strict-equality forbidden-key check added at lines 50 and 60, which itself shows the author treats these path segments as untrusted input. No documentation warning about the trust requirement was found (documentation review is limited to the exported symbol at packages/utils/src/index.ts:55; a broader docs audit is not verified).

    Data flow

    1. Source — the attacker-controlled incrementalResult.path, taken from the object passed to the public merge helper, is spread into the key path: const path = ['data', ...(incrementalResult.path ?? [])]; (packages/utils/src/mergeIncrementalResult.ts:12).
    2. Propagation — setObjectKeyPath compares the unvalidated segment against the forbidden strings with === only; a non-primitive segment is never equal to any of them, so it passes unchanged (packages/utils/src/mergeIncrementalResult.ts:48-52).
    3. Sink — current[key] performs ToPropertyKey coercion, turning the array segment ["__proto__"] into the key "__proto__" and resolving Object.prototype; the following segment is then assigned on that resolved object: current[finalKey] = existingValue != null ? mergeDeep([existingValue, value]) : value (packages/utils/src/mergeIncrementalResult.ts:53-57, sink at :59-64).
    4. Reachability — the entry point is the public API mergeIncrementalResult({ incrementalResult, executionResult }), exported directly at packages/utils/src/index.ts:55 for consumers that assemble incremental transport results. Testing confirmed the data, items (@stream) and recursive incremental[] branches are all affected.

    Vulnerable code

    packages/utils/src/mergeIncrementalResult.ts, lines 12-64 at 134d67ae36a559651f43ec7fe4a9da76f4a00c2b (extract; the ... markers are elisions of intervening lines, not source text):

    const path = ['data', ...(incrementalResult.path ?? [])];
    ...
    const key = keyPath[i];
    if (key === '__proto__' || key === 'constructor' || key === 'prototype') return;
    if
    

    Source: OSV (Open Source Vulnerabilities), GitHub Security Advisories

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    npm@graphql-tools/utils
    • 10.10.1
    • >= 10.10.1, <= 12.0.1
    • 12.0.2
    • 12.0.2

    Weakness classes (CWE)

    • CWE-1321Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')

      Variant

      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.

      Entry at MITRE CWE-1321

    References & sources

    • github.comardatan/graphql-tools/security/advisories/GHSA-c4qx-w738-7hr3web
    • github.comardatan/graphql-tools/pull/8467web
    • github.comardatan/graphql-tools/commit/19f5b3373fd7ace0688d19950fc529ce83…web
    • github.comardatan/graphql-tools/commit/20d36a5c6eb8fd5524420988e01a48618c…web
    • github.comardatan/graphql-toolspackage
    • github.comardatan/graphql-tools/releases/tag/@graphql-tools/utils@12.0.2web
    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2026-114604
    <a href="https://intel.neosec.eu/en/cve/CVE-2026-114604"><img src="https://intel.neosec.eu/badge/cve/CVE-2026-114604.svg?lang=en" alt="CVE-2026-114604 – NEOSEC Intel" height="20"></a>