Apollo Federation vulnerable to prototype pollution via incomplete key sanitization
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.
| Plattform | Paket | Anfällige Versionen | Behoben 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-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/query-planner
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.
- Einträge insgesamt
- 2
- Erste → letzte
- 08.2024 03.2026
- Ohne Fix
- 0
- In Angriffen ausgenutzt
- 0
Verteilung nach Schweregrad
- Kritisch 1
- Hoch 1
Veröffentlichungen pro Jahr
- 2024: 1
- 2025: 0
- 2026: 1
-
Apollo Federation vulnerable to prototype pollution via incomplete key sanitization dieser Eintrag
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.