Loading...
Skip to main content

CVE-2025-32380

HIGH

Apollo Router Query Validation Vulnerable to Excessive Resource Consumption via Named Fragment Processing

Published April 7, 2025Updated April 9, 2025Source: osv

Summary

# 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](https://www.apollographql.com/docs/graphos/routing/security/persisted-queries#router-security-levels). The "Safelisting" security level is not sufficient, since that level allows freeform GraphQL queries to be sent to Apollo Router. # References [Query Planning Documentation](https://www.apollographql.com/docs/graphos/reference/federation/query-plans) ## Acknowledgements We appreciate the efforts of the security community in identifying and improving the performance and security of query validation mechanisms.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update apollo-router to 1.61.2 or later
cargo update -p apollo-router --precise 1.61.2
Cargo
Update apollo-router to 2.1.1 or later
cargo update -p apollo-router --precise 2.1.1

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
apollo-router
crates.io
All versions1.61.2
apollo-router
crates.io
All versions2.1.1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-770
    Allocation of Resources Without LimitsMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.5 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Frequently Asked Questions

What is CVE-2025-32380?
Apollo Router Query Validation Vulnerable to Excessive Resource Consumption via Named Fragment Processing This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.5/10).
How do I check if my project is affected by CVE-2025-32380?
CVE-2025-32380 affects apollo-router. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-32380 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.5

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-3j43-9v8v-cp3f

Related CVEs

  • CVE-2024-32971
    CRITICAL

    Apollo Router vulnerable to Critical Regression In Query Plan Cache

  • CVE-2025-32034
    HIGH

    Apollo Router Query Planner Vulnerable to Excessive Resource Consumption via Named Fragment Expansion

  • CVE-2025-32033
    HIGH

    Apollo Router Operation Limits Vulnerable to Bypass via Integer Overflow

  • CVE-2025-32032
    HIGH

    Apollo Router Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass

  • CVE-2024-28101
    HIGH

    Apollo Router's Compressed Payloads do not respect HTTP Payload Limits

  • CVE-2024-43414
    HIGH

    Apollo Query Planner and Apollo Gateway may infinitely loop on sufficiently complex queries

  • CVE-2025-64347
    HIGH

    Apollo Router Improperly Enforces Renamed Access Control Directives

  • CVE-2023-45812
    HIGH

    Apollo Router vulnerable to Improper Check or Handling of Exceptional Conditions

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies