CVE-2025-32031
HIGH 7.5CVSS 3.1Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass
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.
- Published
- 7 Apr 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-770
- Also known as
- GHSA-p2q6-pwh5-m6jr
- Sources
- NVDJSONOSV GHSA-p2q6-pwh5-m6jrJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | apollographql | apollo_gatewaycpe:2.3:a:apollographql:apollo_gateway:*:*:*:*:*:node.js:*:* |
< 2.10.1 | 2.10.1 |
| OSV | npm | @apollo/gateway | < 2.10.1 | 2.10.1 |
References
- https://github.com/apollographql/federation/pull/3236 · Issue Tracking, Patch, WEB
- https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1 · Release Notes, WEB
- https://github.com/apollographql/federation/security/advisories/GHSA-p2q6-pwh5-m6jr · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-32031 · ADVISORY
- https://github.com/apollographql/federation · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 7 Apr 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 7 Apr 2025)