Security mailing lists by PureSourceCode

GHSA-3h96-34p3-xm76

MEDIUM 5.3CVSS 3.1

GraphQL-Ruby's Ruby lexer does not count comment tokens for the purposes of max_query_string_tokens

GraphQL-Ruby's max_query_string_tokens configuration 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_tokens was introduced in v2.3.1. Each 2.x version has received a new patch release for including a fix.

Published
5 May 2026
Last modified
5 May 2026
Weakness
CWE-770
Sources
OSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV RubyGems graphql >= 2.6.0, < 2.6.1 2.6.1
OSV RubyGems graphql >= 2.5.0, < 2.5.26 2.5.26
OSV RubyGems graphql >= 2.4.0, < 2.4.18 2.4.18
OSV RubyGems graphql >= 2.3.1, < 2.3.23 2.3.23

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 May 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.