CVE-2025-64173: Apollo Router Affected by an Access Control Bypass on Polymorphic Types
Summary A vulnerability in Apollo Router allowed for unauthenticated queries to access data that required additional access controls. Router incorrectly handled access control directives on interface types/fields and their implementing object types/fields, applying them to interface types/fields while ignoring directives on their implementing object types/fields when all implementations had the same requirements.
Published Nov 6, 2025
Affected packages
apollo-router
- Ecosystem
- Rust (crates.io)
- Affected
- < 1.61.12
- Fixed in
- 1.61.12
- Check
cargo tree -i apollo-router
apollo-router
- Ecosystem
- Rust (crates.io)
- Affected
- >= 2.0.0-alpha.0, < 2.8.1
- Fixed in
- 2.8.1
- Check
cargo tree -i apollo-router
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
A vulnerability in Apollo Router allowed for unauthenticated queries to access data that required additional access controls. Router incorrectly handled access control directives on interface types/fields and their implementing object types/fields, applying them to interface types/fields while ignoring directives on their implementing object types/fields when all implementations had the same requirements.
Details
Apollo Federation allows users to specify access control directives (`@authenticated`, `@requiresScopes`, and `@policy`) to protect object and interface types and fields. However, the GraphQL specification does not define inheritance rules for directives from interfaces to their implementations. Apollo Router will enforce any directives on the interface types/fields but ignore any directives on the implementation object types/fields (as long as all implementations have the same requirements). This inconsistent enforcement behavior leads to unexpected runtime security gaps.
Who is impacted
This vulnerability impacts Apollo Router customers defining @authenticated, @requiresScopes, or @policy directives inconsistently on polymorphic types (i.e., object types that implement interface types). Specifically, if the same access control directives are applied to all implementing types/fields but not on their implemented interface types/fields, they could be impacted.
Scope of Impact
This vulnerability could allow a malicious actor to craft a query that can bypass access control requirements on the object types/fields by instead querying them via implemented interface types/fields that don't have the same access control requirements.
Patches
This vulnerability has been fixed at runtime in Apollo Router. You may update Router to one of the following versions:
- 1.61.12+
- 2.8.1+
Workarounds
- If you are not immediately updating Router to a patched version, you should apply any included access control requirements to *both* the appropriate interface types/fields and their implementations.
- Customers not using Apollo Router access control features (
@authenticated,@requiresScopes, or@policydirectives) or not specifying inconsistent access control requirements on polymorphic types/fields are not affected and do not need to take action.
Credited to dariuszkuc.
References
- https://github.com/apollographql/router/security/advisories/GHSA-x33c-7c2v-mrj9
- https://github.com/apollographql/router/commit/75ca43ecb9d38423b63d09896702f9da425cc754
- https://nvd.nist.gov/vuln/detail/CVE-2025-64173
- https://github.com/apollographql/router/releases/tag/v2.8.1
- https://www.apollographql.com/docs/graphos/routing/security/authorization#authorization-directives
- https://github.com/advisories/GHSA-x33c-7c2v-mrj9
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Rust (crates.io) vulnerabilities
All Rust (crates.io) entriesGHSA-hff2-gcpx-8f4p
Apollo Router Core: Browser Bug Enables Bypass of XS-Search Prevention via Read-Only Cross-Site Request Forgery
medium6.3Mar 26, 2026CVE-2025-64347
Apollo Router Improperly Enforces Renamed Access Control Directives
high7.5Nov 6, 2025CVE-2025-32032
Apollo Router Query Planner Vulnerable to Excessive Resource Consumption via Optimization Bypass
high7.5Apr 7, 2025CVE-2025-32033
Apollo Router Operation Limits Vulnerable to Bypass via Integer Overflow
high7.5Apr 7, 2025CVE-2025-32034
Apollo Router Query Planner Vulnerable to Excessive Resource Consumption via Named Fragment Expansion
high7.5Apr 7, 2025CVE-2025-32380
Apollo Router Query Validation Vulnerable to Excessive Resource Consumption via Named Fragment Processing
high7.5Apr 7, 2025
