{"id":"CVE-2025-32380","aliases":["CVE-2025-32380","GHSA-3j43-9v8v-cp3f"],"related":[],"kind":"vulnerability","state":"published","title":"Apollo Router Query Validation Vulnerable to Excessive Resource Consumption via Named Fragment Processing","summary":"The Apollo Router Core is a configurable, high-performance graph router written in Rust to run a federated supergraph that uses Apollo Federation 2. A vulnerability in Apollo Router's usage of Apollo Compiler allowed queries with deeply nested and reused named fragments to be prohibitively expensive to validate. This could lead to excessive resource consumption and denial of service.  Apollo Router's usage of Apollo Compiler has been updated so that validation logic processes each named fragment only once, preventing redundant traversal. This has been remediated in apollo-router versions 1.61.2 and 2.1.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The Apollo Router Core is a configurable, high-performance graph router written in Rust to run a federated supergraph that uses Apollo Federation 2. A vulnerability in Apollo Router's usage of Apollo Compiler allowed queries with deeply nested and reused named fragments to be prohibitively expensive to validate. This could lead to excessive resource consumption and denial of service.  Apollo Router's usage of Apollo Compiler has been updated so that validation logic processes each named fragment only once, preventing redundant traversal. This has been remediated in apollo-router versions 1.61.2 and 2.1.1.","source":"cvelist"},{"lang":"en","text":"# Impact\n\n## Summary\n\nA vulnerability in Apollo Router's usage of Apollo Compiler allowed queries with deeply nested and reused named fragments to be prohibitively expensive to validate. This could lead to excessive resource consumption and denial of service.\n\n## Details\n\nNamed fragments were being processed once per fragment spread in some cases during query validation, leading to exponential resource usage when deeply nested and reused fragments were involved.\n\n## Fix/Mitigation\n\nApollo Router's usage of Apollo Compiler has been updated so that validation logic processes each named fragment only once, preventing redundant traversal.\n\n# Patches\n\nThis has been remediated in `apollo-router` versions 1.61.2 and 2.1.1.\n\n# Workarounds\nThe only known workaround is \"Safelisting with IDs only\" per [Safelisting with Persisted Queries - Apollo GraphQL Docs](https://www.apollographql.com/docs/graphos/routing/security/persisted-queries#router-security-levels). The \"Safelisting\" security level is not sufficient, since that level allows freeform GraphQL queries to be sent to Apollo Router.\n\n# References \n[Query Planning Documentation](https://www.apollographql.com/docs/graphos/reference/federation/query-plans)\n\n## Acknowledgements\nWe appreciate the efforts of the security community in identifying and improving the performance and security of query validation mechanisms.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Apollo Router Core es un enrutador gráfico configurable y de alto rendimiento, escrito en Rust, para ejecutar un supergrafo federado que utiliza Apollo Federation 2. Una vulnerabilidad en el uso del compilador Apollo por parte del enrutador Apollo provocó que la validación de consultas con fragmentos con nombre profundamente anidados y reutilizados fuera prohibitivamente costosa. Esto podría provocar un consumo excesivo de recursos y denegación de servicio. El uso del compilador Apollo por parte del enrutador Apollo se ha actualizado para que la lógica de validación procese cada fragmento con nombre solo una vez, evitando así la navegación redundante. Esto se ha solucionado en las versiones 1.61.2 y 2.1.1 de apollo-router.","source":"nvd"}],"published":"2025-04-07T19:00:30.000Z","modified":"2026-06-17T09:11:54.567Z","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":"< 1.61.2","status":"affected"},{"version":">= 2.0.0-alpha.0, < 2.1.1","status":"affected"}],"vendor":"apollographql","product":"router","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.61.2"}],"ecosystem":"crates.io","package":"apollo-router","purl":"pkg:cargo/apollo-router","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0-alpha.0","status":"affected","fixed":"2.1.1"}],"ecosystem":"crates.io","package":"apollo-router","purl":"pkg:cargo/apollo-router","source":"ghsa"}],"references":[{"url":"https://github.com/apollographql/router/security/advisories/GHSA-3j43-9v8v-cp3f","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/apollographql/router/commit/ab6675a63174715ea6ff50881fc957831d4e9564","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/apollographql/router/commit/bba032e183b861348a466d3123c7137a1ae18952","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32380","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/apollographql/router","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-09T17:28:24.099Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-32380","url":"https://www.cve.org/CVERecord?id=CVE-2025-32380","licence":"CVE Terms of Use","modified":"2025-04-09T20:43:06.645Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3j43-9v8v-cp3f","url":"https://github.com/advisories/GHSA-3j43-9v8v-cp3f","licence":"CC-BY-4.0","modified":"2025-04-09T20:14:21.697Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-32380","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-32380","licence":"Public domain","modified":"2026-06-17T09:11:54.567Z"}],"updatedAt":"2026-11-25T22:58:56.310Z","epss":{"score":0.01038,"percentile":0.63253,"date":"2026-11-30T12:00:22.000Z"}}