{"cve":"CVE-2025-31496","nvd":{"published":"2025-04-07T21:15:42.720","modified":"2026-06-17T09:10:30.147","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-770"],"references":["https://github.com/apollographql/apollo-rs/pull/952","https://github.com/apollographql/apollo-rs/security/advisories/GHSA-7mpv-9xg6-5r79"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:00:57.946988208+00:00"},"epss":{"cve":"CVE-2025-31496","score":0.00438,"percentile":0.38082,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7mpv-9xg6-5r79","url":"https://osv.dev/vulnerability/GHSA-7mpv-9xg6-5r79","summary":"Apollo Compiler Named Fragment Processing Vulnerability","modified":"2025-04-08T17:49:31Z","packages":[{"ecosystem":"crates.io","name":"apollo-compiler","purl":"pkg:cargo/apollo-compiler","ranges":["<1.27.0"],"fixed":["1.27.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}