CVE-2025-32031 json
Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass
published 2025-04-07 19 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-10284 , GHSA-p2q6-pwh5-m6jr
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 49%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- npm @apollo/gateway 2.10.1
- apollographql apollo_gateway 2.10.1
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 19 mo ago
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 49% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @apollo/gateway | <2.10.1 |
2.10.1 |
Affected products
- apollographql federation
Classification
- Weakness
-
- CWE-770 Allocation of Resources Without Limits or Throttling
References
-
github.com
/apollographql/federation/pull/3236
web, issue-tracking, patch
-
github.com
/apollographql/federation/security/advisories/GHSA-p2q6-pwh5-m6jr
web, vendor-advisory
-
github.com
/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1
web, release-notes
-
nvd.nist.gov
/vuln/detail/CVE-2025-32031
advisory
-
github.com
/apollographql/federation
package
Sources
- CVE List CVE-2025-32031
- GitHub Advisory GHSA-p2q6-pwh5-m6jr
- NVD CVE-2025-32031
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.