Skip to content
High 7.5

graphql-core ではコメントによりmax_tokens制限を回避されサービス拒否の恐れ

CVE-2026-75508 First seen on SecPulse

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

PackageAffected → Fixed
graphql-pythongraphql-core —
pipgraphql-core
< 3.3.0rc1→ 3.3.0rc1
PyPIgraphql-core
≥ 3.3.0a3, < 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.

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

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details