graphql-core ではコメントによりmax_tokens制限を回避されサービス拒否の恐れ
Summary
GraphQL パーサーの max_tokens 制限がコメントのトークンを数えず、コメントで埋めたドキュメントによりメモリを大量に消費されて、サービス拒否の状態になるおそれがあります。影響を受けるのは graphql-core の 3.3.0rc1 より前のバージョンで、3.3.0rc1 以降に更新することで対処できます。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
GraphQL パーサーの max_tokens 制限がコメントのトークンを数えず、コメントで埋めたドキュメントによりメモリを大量に消費されて、サービス拒否の状態になるおそれがあります。影響を受けるのは graphql-core の 3.3.0rc1 より前のバージョンで、3.3.0rc1 以降に更新することで対処できます。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| graphql-pythongraphql-core | — | Not listed |
| pipgraphql-core |
< 3.3.0rc1→ 3.3.0rc1 |
3.3.0rc1 |
| PyPIgraphql-core |
≥ 3.3.0a3, < 3.3.0rc1→ 3.3.0rc1 |
3.3.0rc1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-75508 graphql-core Fix available
- Ubuntu UBUNTU-CVE-2026-75508 graphql-core No fixed version in this record
Original description The description as published by the source.
GraphQL-core is a Python port of the GraphQL.js reference implementation. From 3.2.3 until 3.2.12 and 3.3.0rc1, the parser's max_tokens limit in Parser.advance_lexer counts only non-comment tokens returned after Lexer.lookahead skips comments. Each skipped comment is still allocated as a Token and retained through token.next and token.prev, allowing a highly compressible comment-padded GraphQL document to pass a low token limit while consuming memory. An unauthenticated remote attacker can exhaust worker memory before AST-based depth or complexity controls run. This issue is fixed in versions 3.2.12 and 3.3.0rc1.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com