{"id":"CVE-2025-32030","aliases":["CVE-2025-32030","GHSA-q2f9-x4p4-7xmh"],"related":[],"kind":"vulnerability","state":"published","title":"Apollo Gateway Query Planner Vulnerable to Excessive Resource Consumption via Named Fragment Expansion","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 during named fragment expansion. Named fragments were being expanded once per fragment spread during query planning, leading to exponential resource usage when deeply nested and reused fragments were involved. This could lead to excessive resource consumption and denial of service. This has been remediated in @apollo/gateway version 2.10.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 during named fragment expansion. Named fragments were being expanded once per fragment spread during query planning, leading to exponential resource usage when deeply nested and reused fragments were involved. This could lead to excessive resource consumption and denial of service. This has been remediated in @apollo/gateway version 2.10.1.","source":"cvelist"},{"lang":"en","text":"# Impact\n\n## Summary\n\nA vulnerability in Apollo Gateway allowed queries with deeply nested and reused named fragments to be prohibitively expensive to query plan, specifically during named fragment expansion. This could lead to excessive resource consumption and denial of service.\n\n## Details\n\nNamed fragments were being expanded once per fragment spread during query planning, leading to exponential resource usage when deeply nested and reused fragments were involved.\n\n## Fix/Mitigation\n\nA new **Query Fragment Expansion Limit** metric has been introduced:\n  - This metric computes the number of selections a query would have if its fragment spreads were fully expanded.\n  - The metric is checked against a limit to prevent excessive computation.\n\n# Patches\n\nThis has been remediated in `@apollo/gateway` version 2.10.1.\n\n# Workarounds\n\nNo known direct workarounds exist.\n\n# References\n\n[Query Planning Documentation](https://www.apollographql.com/docs/graphos/reference/federation/query-plans)\n\n## Acknowledgements\n\nWe appreciate the efforts of the security community in identifying and improving the performance and security of query planning mechanisms.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Apollo Gateway proporciona utilidades para combinar múltiples microservicios GraphQL en un único endpoint GraphQL. Antes de la versión 2.10.1, una vulnerabilidad en Apollo Gateway hacía que las consultas con fragmentos con nombre profundamente anidados y reutilizados fueran excesivamente costosas de planificar, especialmente durante la expansión de fragmentos con nombre. Los fragmentos con nombre se expandían una vez por cada fragmento extendido durante la planificación, lo que provocaba un uso exponencial de recursos al involucrar fragmentos profundamente anidados y reutilizados. Esto podía provocar un consumo excesivo de recursos y denegación de servicio. Esto se ha solucionado en la versión 2.10.1 de @apollo/gateway.","source":"nvd"}],"published":"2025-04-07T19:03:10.000Z","modified":"2026-06-17T09:11:21.007Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"version":"< 2.10.1","status":"affected"}],"vendor":"apollographql","product":"federation","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.10.1"}],"ecosystem":"npm","package":"@apollo/gateway","purl":"pkg:npm/%40apollo/gateway","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.10.1"}],"vendor":"apollographql","product":"apollo_gateway","cpe":"cpe:2.3:a:apollographql:apollo_gateway:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/apollographql/federation/security/advisories/GHSA-q2f9-x4p4-7xmh","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/apollographql/federation/pull/3236","tags":["issue-tracking","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/apollographql/federation/releases/tag/%40apollo%2Fgateway%402.10.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32030","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apollographql/federation","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-04-08T18:13:48.485Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32030","url":"https://www.cve.org/CVERecord?id=CVE-2025-32030","licence":"CVE Terms of Use","modified":"2025-04-08T18:25:01.371Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q2f9-x4p4-7xmh","url":"https://github.com/advisories/GHSA-q2f9-x4p4-7xmh","licence":"CC-BY-4.0","modified":"2025-04-08T17:50:55.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32030","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32030","licence":"Public domain","modified":"2026-06-17T09:11:21.007Z"}],"updatedAt":"2026-11-25T22:58:56.169Z","epss":{"score":0.00531,"percentile":0.46321,"date":"2026-12-01T12:00:22.000Z"}}