CVE-2025-31496
HIGH 7.5CVSS 3.1Apollo Compiler Named Fragment Processing Vulnerability
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.
- Published
- 7 Apr 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-770
- Also known as
- GHSA-7mpv-9xg6-5r79
- Sources
- NVDJSONOSV GHSA-7mpv-9xg6-5r79JSON
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 |
|---|---|---|---|---|
| OSV | crates.io | apollo-compiler | < 1.27.0 | 1.27.0 |
References
- https://github.com/apollographql/apollo-rs/pull/952 · WEB
- https://github.com/apollographql/apollo-rs/security/advisories/GHSA-7mpv-9xg6-5r79 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-31496 · ADVISORY
- https://github.com/apollographql/apollo-rs · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 7 Apr 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Apr 2025)