RubySec

Providing security resources for the Ruby community

GHSA-wqwf-8p4q-mwqj (graphql): Exponential time when calculating complexity

Exponential time when calculating complexity

Published: November 17, 2026

SECURITY IDENTIFIERS

GEM

graphql

UNAFFECTED VERSIONS

< 2.3.0

PATCHED VERSIONS

>= 2.6.16

DESCRIPTION

When max_complexity is set, a small, valid crafted query can cause the complexity analyzer take exponential time. The work happens outside validate_timeout, the query is not rejected and max_depth does not prevent it.

RELATED