Critical

Apollo Federation vulnerable to prototype pollution via incomplete key sanitization

  • Disclosed: 13.03.2026
  • Updated: 11.10.2026 10:22

Impact

A vulnerability exists in query plan execution within the gateway that may allow pollution of Object.prototype in certain scenarios. A malicious client may be able to pollute Object.prototype in gateway directly by crafting operations with field aliases and/or variable names that target prototype-inheritable properties. Alternatively, if a subgraph were to be compromised by a malicious actor, they may be able to pollute Object.prototype in gateway by crafting JSON response payloads that target prototype-inheritable properties.

Because Object.prototype is shared across the Node.js process, successful exploitation can affect subsequent requests to the gateway instance. This may result in unexpected application behavior, privilege escalation, data integrity issues, or other security impact depending on how polluted properties are subsequently consumed by the application or its dependencies. As of the date of this advisory, Apollo is not aware of any reported exploitation of this vulnerability.

Patches

Mitigations addressing prototype pollution exposure have been applied in @apollo/federation-internals, @apollo/gateway, and @apollo/query-planner versions 2.9.6, 2.10.5, 2.11.6, 2.12.3, and 2.13.2. Users are encouraged to upgrade to these versions or later at their earliest convenience.

Workarounds

A fully effective workaround is not available without a code change. As an interim measure, users who are unable to upgrade immediately may consider placing an input validation layer in front of the gateway to filter operations containing GraphQL names matching known Object.prototype pollution patterns (e.g., __proto__, constructor, prototype). Users should also ensure that subgraphs in their federated graph originate from trusted sources.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package @apollo/federation-internals < 2.9.6, >= 2.10.0, < 2.10.5, >= 2.11.0, < 2.11.6, >= 2.12.0, < 2.12.3, >= 2.13.0, < 2.13.2 2.9.6, 2.10.5, 2.11.6, 2.12.3, 2.13.2
npm package @apollo/gateway < 2.9.6, >= 2.10.0, < 2.10.5, >= 2.11.0, < 2.11.6, >= 2.12.0, < 2.12.3, >= 2.13.0, < 2.13.2 2.9.6, 2.10.5, 2.11.6, 2.12.3, 2.13.2
npm package @apollo/query-planner < 2.9.6, >= 2.10.0, < 2.10.5, >= 2.11.0, < 2.11.6, >= 2.12.0, < 2.12.3, >= 2.13.0, < 2.13.2 2.9.6, 2.10.5, 2.11.6, 2.12.3, 2.13.2

References

CVSS score 9.9/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
Weakness (CWE)
CWE-1321
Platform
npm
Package
@apollo/federation-internals, @apollo/gateway, @apollo/query-planner
Disclosed
13.03.2026
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-pfjj-6f4p-rvmh - CC BY 4.0

Vulnerability history: @apollo/query-planner

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
08.2024 03.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • High 1

Disclosures per year

  1. 2024: 1
  2. 2025: 0
  3. 2026: 1
  1. Apollo Federation vulnerable to prototype pollution via incomplete key sanitization this entry
    Critical · 9.9 CVE-2026-32621 < 2.9.6, >= 2.10.0, < 2.10.5, >= 2.11.0, < 2.11.6, >= 2.12.0, < 2.12.3, >= 2.13.0, < 2.13.2 2.9.6, 2.10.5, 2.11.6, 2.12.3, 2.13.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.