Bypass max_complexity (in "legacy" mode)
Published: November 09, 2026
SECURITY IDENTIFIERS
- GHSA: GHSA-wc34-88mf-j95m
- Vendor Advisory: https://github.com/rmosolgo/graphql-ruby/security/advisories/GHSA-wc34-88mf-j95m
GEM
SEVERITY
CVSS v3.x: 7.5 (High)
UNAFFECTED VERSIONS
< 2.0.0
PATCHED VERSIONS
>= 2.6.15
DESCRIPTION
With the default complexity_cost_calculation_mode (:legacy), a client can bypass max_complexity by adding one connection field by using crafted inputs. The query runs at a cost far above the limit.
