CVE-2025-64530

CVE-2025-64530 is a high-severity security vulnerability in @apollo/composition (npm), affecting versions < 2.9.5. It is fixed in 2.9.5, 2.10.4, 2.11.5, 2.12.1.

Summary

A vulnerability in Apollo Federation's composition logic allowed some queries to Apollo Router to improperly bypass access controls on types/fields. Apollo Federation incorrectly allowed user-defined access control directives on interface types/fields, which could be bypassed by instead querying the implementing object types/fields in Apollo Router via inline or named fragments. A fix to composition logic in Federation now disallows interfaces types and fields to contain user-defined access control directives.

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. When querying object or interface types/fields, Apollo Router will enforce any directives on those object or interface types/fields, but ignore any directives on interface types/fields they implement. This inconsistent enforcement behavior leads to unexpected runtime security gaps.

Who is impacted

This vulnerability impacts Apollo Federation customers defining @authenticated, @requiresScopes, or @policy directives on interface types/fields.

Scope of Impact

This vulnerability could allow a malicious actor to craft a query that can bypass access control requirements on the interface types/fields by instead querying them via implementing object types/fields that don't have the same access control requirements via inline or named fragments.

Workarounds

  • If using Apollo Rover with an unpatched composition version or are using the Apollo Studio build pipeline with Federation version 2.8 or below, users should manually copy the access control requirements on interface types/fields to each implementing object type/field where appropriate. Do not remove those access control requirements from the interface types/fields, as unpatched Apollo Composition will not automatically generate them in the supergraph schema.
  • Customers not using Apollo Router access control features (@authenticated, @requiresScopes, or @policy directives) or not specifying access control requirements on interface types/fields are not affected and do not need to take action.

Impact

CVE-2025-64530 has a CVSS score of 7.5 (High). The vector is network-reachable, no privileges required, and no user interaction. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (2.9.5, 2.10.4, 2.11.5, 2.12.1); upgrading removes the vulnerable code path.

Affected versions

@apollo/composition (< 2.9.5) @apollo/composition (>= 2.10.0-alpha.3, < 2.10.4) @apollo/composition (>= 2.11.0-preview.1, < 2.11.5) @apollo/composition (>= 2.12.0-preview.1, < 2.12.1)

Security releases

@apollo/composition → 2.9.5 (npm) @apollo/composition → 2.10.4 (npm) @apollo/composition → 2.11.5 (npm) @apollo/composition → 2.12.1 (npm)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

This vulnerability has been fixed in Apollo Federation's composition logic by rejecting user-defined access control directives entirely on interface types and fields (note that access control directives on @interfaceObject fields are not rejected, as those are really specifying requirements on the virtual object fields). Instead, Apollo Federation's composition logic will automatically generate access control directives for interface types/fields in the supergraph schema based on the access control directives on the implementations in subgraph schemas.

Note that this is a breaking change to Apollo Federation, as it no longer allows user-defined access control directives directly on interfaces types and fields. You will need to remove all access control requirements on interface types/fields and manually apply them to each implementing object type/field, where appropriate.

If users are using the Apollo Studio build pipeline with federation version 2.9 or above, then this composition patch version update is automatic and they only need to adjust the access control requirements in your subgraph schemas as mentioned above.

If users are using Apollo Rover for local composition, they will need to update its composition version (after updating Apollo Router, if necessary) to one of the following versions:

  • 2.9.5+
  • 2.10.4+
  • 2.11.5+
  • 2.12.1+

Users will then need adjust the access control requirements in your subgraph schemas as mentioned above.

Frequently Asked Questions

  1. What is CVE-2025-64530? CVE-2025-64530 is a high-severity security vulnerability in @apollo/composition (npm), affecting versions < 2.9.5. It is fixed in 2.9.5, 2.10.4, 2.11.5, 2.12.1.
  2. How severe is CVE-2025-64530? CVE-2025-64530 has a CVSS score of 7.5 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which versions of @apollo/composition are affected by CVE-2025-64530? @apollo/composition (npm) versions < 2.9.5 is affected.
  4. Is there a fix for CVE-2025-64530? Yes. CVE-2025-64530 is fixed in 2.9.5, 2.10.4, 2.11.5, 2.12.1. Upgrade to this version or later.
  5. Is CVE-2025-64530 exploitable, and should I be worried? Whether CVE-2025-64530 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2025-64530 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2025-64530?
    • Upgrade @apollo/composition to 2.9.5 or later
    • Upgrade @apollo/composition to 2.10.4 or later
    • Upgrade @apollo/composition to 2.11.5 or later
    • Upgrade @apollo/composition to 2.12.1 or later

Other vulnerabilities in @apollo/composition

Stop the waste.
Protect your environment with Kodem.