Intel

AIKIDO-2026-818766

graphql is vulnerable to Authorization Bypass

Authorization BypassGHSA-j7xr-4g94-r9h3 Published 4 days ago

75

High Risk

This Affects:

RUBYgraphql
2.5.23 - 2.6.5
Fixed in 2.6.6
Are you affected? Scan for Free

TL;DR

GraphQL-Ruby's Execution::Next runtime does not halt execution when a field backed by GraphQL::Schema::Resolver or its subclasses (including GraphQL::Schema::Mutation, GraphQL::Schema::RelayClassicMutation, and GraphQL::Schema::Subscription) raises a GraphQL::UnauthorizedError. The resolver-thrown authorization failure is still treated as authorized, so the field or mutation continues to resolve and return data. This lets clients reach resolver and mutation logic that authorization checks should have blocked, while other forms of authorization still applied correctly. The fix marks resolver-raised UnauthorizedErrors as unauthorized so execution stops as intended.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application uses the Execution::Next execution mode.

Background info

graphql is vulnerable to Authorization Bypass in versions 2.5.23 - 2.6.5.

How to fix this

Upgrade the graphql and/or the graphql-ruby library to the patch version.