# CVE-2025-31496: apollo-compiler Named Fragment Processing Vulnerability

> CVE-2025-31496: apollo-compiler Named Fragment Processing Vulnerability. CVSS 7.5 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2025-31496
Last updated: 2026-06-17T09:10:30Z

- Published: 2025-04-07 20:34 UTC · Updated: 2026-06-17 09:10 UTC · Assigner: GitHub\_M
- CVSS: 7.5 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.43%, 37th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-770

## Description

apollo-compiler is a query-based compiler for the GraphQL query language. Prior to 1.27.0, a vulnerability in Apollo Compiler allowed queries with deeply nested and reused named fragments to be prohibitively expensive to validate. Named 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. This could lead to excessive resource consumption and denial of service in applications. This vulnerability is fixed in 1.27.0.

## Affected vendors and products

- apollographql: apollo-rs

## Tracked companies

- [Apollo GraphQL](https://rewindex.com/company/apollo-graphql.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2025-31496)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2025-31496)
- [https://github.com/apollographql/apollo-rs/pull/952](https://github.com/apollographql/apollo-rs/pull/952)
- [https://github.com/apollographql/apollo-rs/security/advisories/GHSA-7mpv-9xg6-5r79](https://github.com/apollographql/apollo-rs/security/advisories/GHSA-7mpv-9xg6-5r79)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2025-31496 · Markdown: https://rewindex.com/cve/CVE-2025-31496.md · JSON: https://rewindex.com/api/v1/cves/CVE-2025-31496 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:11:30.752Z
