Ruby lexer does not count comment tokens for the purposes of max_query_string_tokens
Package
Affected versions
2.6.0
>= 2.5.0, < 2.5.26
>= 2.4.0, < 2.4.18
>= 2.3.1, < 2.3.23
Patched versions
2.6.1
2.5.26
2.4.18
2.3.23
GraphQL-Ruby's
max_query_string_tokensconfiguration didn't count comment tokens against the limit, allowing strings to be processed even after the configured maximum had actually been reached.In patched versions, the Ruby lexer does count these tokens.
GraphQL-CParser is not affected by this problem.
max_query_string_tokenswas introduced in v2.3.1. Each 2.x version has received a new patch release for including a fix.