Kritisch

Apollo Federation vulnerable to prototype pollution via incomplete key sanitization

  • Veröffentlicht: 13.03.2026
  • Aktualisiert: 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.

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
npm-Paket @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-Paket @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-Paket @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

Verweise

CVSS-Wert 9.9/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L
Schwäche (CWE)
CWE-1321
Plattform
npm
Paket
@apollo/federation-internals, @apollo/gateway, @apollo/query-planner
Veröffentlicht
13.03.2026
Aktualisiert
11.10.2026 10:22

Quellen und Lizenzen

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

Schwachstellenhistorie: @apollo/federation-internals

Alle veröffentlichten Schwachstellen dieses Pakets (npm-Paket), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Dies ist die einzige bekannte Schwachstelle dieses Pakets.

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.