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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-04-07T19:09:14.000Z
- Modified: 2026-06-17T09:10:30.147Z
- Also known as: GHSA-7mpv-9xg6-5r79
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- apollographql apollo-rs: < 1.27.0
- apollo-compiler (crates.io): before 1.27.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/apollographql/apollo-rs/security/advisories/GHSA-7mpv-9xg6-5r79> (web)
- <https://github.com/apollographql/apollo-rs/pull/952> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31496> (advisory)
- <https://github.com/apollographql/apollo-rs> (package)

## Sources

- CVE List: [CVE-2025-31496](https://www.cve.org/CVERecord?id=CVE-2025-31496), CVE Terms of Use, modified 2025-04-08
- GitHub Advisory Database: [GHSA-7mpv-9xg6-5r79](https://github.com/advisories/GHSA-7mpv-9xg6-5r79), CC-BY-4.0, modified 2025-04-08
- NVD: [CVE-2025-31496](https://nvd.nist.gov/vuln/detail/CVE-2025-31496), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-31496 · Whole record: https://cve.day/CVE-2025-31496.json · Rebuilt by cve.day 2026-11-25T22:58:56.168Z
