CVE-2025-32380: Apollo Router Query Validation Vulnerable to Excessive Resource Consumption via Named Fragment Processing

Published Apr 7, 2025
·
Updated

Impact

Summary

A vulnerability in Apollo Router's usage of Apollo Compiler allowed queries with deeply nested and reused named fragments to be prohibitively expensive to validate. This could lead to excessive resource consumption and denial of service.

Details

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.

Fix/Mitigation

Apollo Router's usage of Apollo Compiler has been updated so that validation logic processes each named fragment only once, preventing redundant traversal.

Patches

This has been remediated in apollo-router versions 1.61.2 and 2.1.1.

Workarounds The only known workaround is "Safelisting with IDs only" per Safelisting with Persisted Queries - Apollo GraphQL Docs. The "Safelisting" security level is not sufficient, since that level allows freeform GraphQL queries to be sent to Apollo Router.

References Query Planning Documentation

Acknowledgements We appreciate the efforts of the security community in identifying and improving the performance and security of query validation mechanisms.

Other sources

The Apollo Router Core is a configurable, high-performance graph router written in Rust to run a federated supergraph that uses Apollo Federation 2. A vulnerability in Apollo Router's usage of Apollo Compiler allowed queries with deeply nested and reused named fragments to be prohibitively expensive to validate. This could lead to excessive resource consumption and denial of service. Apollo Router's usage of Apollo Compiler has been updated so that validation logic processes each named fragment only once, preventing redundant traversal. This has been remediated in apollo-router versions 1.61.2 and 2.1.1.

MITRE

Affected Software

3 affected componentsFixes available
Apollo Router<1.61.2, <2.1.1
rust/apollo-router>=2.0.0-alpha.0<2.1.1
2.1.1
rust/apollo-router<1.61.2
1.61.2

Event History

Apr 7, 2025
Advisory Published
via GitHub·07:00 PM
Apr 9, 2025
CVE Published
via MITRE·04:05 PM
Data Sourced
via MITRE·04:05 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeakness
May 5, 57258
Event
via FIRST·06:25 AM

Frequently Asked Questions

1

What is the severity of CVE-2025-32380?

CVE-2025-32380 has a high severity due to its potential to cause denial of service through excessive resource consumption.

2

How do I fix CVE-2025-32380?

To fix CVE-2025-32380, update Apollo Router to version 2.1.1 or more recent for patching.

3

What software versions are affected by CVE-2025-32380?

CVE-2025-32380 affects Apollo Router versions prior to 1.61.2 and 2.1.1.

4

What causes the vulnerability CVE-2025-32380?

CVE-2025-32380 is caused by the Apollo Router's inefficient handling of deeply nested and reused named fragments in queries.

5

Can CVE-2025-32380 lead to a denial of service attack?

Yes, CVE-2025-32380 can lead to denial of service due to excessive resource consumption during query validation.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203