CVE-2025-31496 Details
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.
A denial-of-service vulnerability has been identified in the Apollo Compiler for GraphQL, affecting versions prior to 1.27.0. The issue arises from the query validation process, where named fragments are sometimes processed multiple times for each fragment spread. This behavior can lead to exponential resource consumption, particularly with deeply nested and reused fragments, causing excessive load and potential service disruption in applications.
Users can upgrade to Apollo Compiler version 1.27.0 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 7, 2025CISA-ADP
Assessed Apr 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/apollographql/apollo-rs/pull/952 | [email protected] | Issue TrackingVendor |
| https://github.com/apollographql/apollo-rs/security/advisories/GHSA-7mpv-9xg6-5r79 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| apollographql apollo-compiler | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 7, 2025 | New CVE Received | [email protected] |
Volerion