CVE-2025-32031 Details
Description
Apollo Gateway provides utilities for combining multiple GraphQL microservices into a single GraphQL endpoint. Prior to 2.10.1, a vulnerability in Apollo Gateway allowed queries with deeply nested and reused named fragments to be prohibitively expensive to query plan, specifically due to internal optimizations being frequently bypassed. The query planner includes an optimization that significantly speeds up planning for applicable GraphQL selections. However, queries with deeply nested and reused named fragments can generate many selections where this optimization does not apply, leading to significantly longer planning times. Because the query planner does not enforce a timeout, a small number of such queries can render gateway inoperable. This could lead to excessive resource consumption and denial of service. This has been remediated in @apollo/gateway version 2.10.1.
A denial-of-service vulnerability has been identified in Apollo Gateway versions prior to 2.10.1. The issue arises when queries contain deeply nested and reused named fragments, which can complicate the query planning process. This complexity prevents the query planner from applying certain optimizations that typically speed up processing, resulting in significantly longer planning times. The lack of a timeout in the query planner allows a small number of such queries to disrupt gateway operations, causing excessive resource consumption and rendering the gateway inoperable.
Users can upgrade to Apollo Gateway version 2.10.1 to address this vulnerability. This version includes a new 'Query Optimization Limit' metric that helps prevent excessive computation by approximating the number of selections that cannot be optimized, thus avoiding prolonged query planning times.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/apollographql/federation/pull/3236 | [email protected] | Issue TrackingPatch |
| https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1 | [email protected] | Release Notes |
| https://github.com/apollographql/federation/security/advisories/GHSA-p2q6-pwh5-m6jr | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apollographql apollo gateway | < 2.10.1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Aug 1, 2025 | Initial Analysis | [email protected] |
| Apr 7, 2025 | New CVE Received | [email protected] |