Advisory

GHSA-x33c-7c2v-mrj9

Also known as: CVE-2025-64173

Summary

Apollo Router Affected by an Access Control Bypass on Polymorphic Types

Details

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 @policy directives) or not specifying inconsistent access control requirements on polymorphic types/fields are not affected and do not need to take action.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-11-06 15:47 UTC
Modified
2025-11-06 23:13 UTC

Affected packages and fixes

apollo-router

crates.io · All systems

Affected

  • introduced 0, fixed 1.61.12 (semver)

Fixed versions

1.61.12

Fix

  • Fixed version 1.61.12
    cargo update -p apollo-router --precise 1.61.12

apollo-router

crates.io · All systems

Affected

  • introduced 2.0.0-alpha.0, fixed 2.8.1 (semver)

Fixed versions

2.8.1

Fix

  • Fixed version 2.8.1
    cargo update -p apollo-router --precise 2.8.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences