AploSec / Disclosures / CVE-2026-134795
graphql-core 3.2.12 before 3.2.14 and 3.3.0rc1 before 3.3.2 Denial of Service via Parser max_tokens Comment Runs
CVE-2026-134795 · published 2026-11-22
In plain words: this type of bug lets someone slow down or crash the service with crafted input (denial of service). A fixed release is listed.
Summary
CVE-2026-134795 affects graphql-core (PyPI) >= 3.2.12, < 3.2.14; >= 3.3.0rc1, < 3.3.2: Denial of Service via Parser max_tokens Comment Runs (CWE-770). Fixed in 3.2.14, 3.3.2. CVSS 4.0 base score 6.9 (Medium), assigned by VulnCheck. Published 2026-11-22 by VulnCheck. Credit: Zachariah Mithani (AploSec).
graphql-core 3.2.12 before 3.2.14 and 3.3.0rc1 before 3.3.2 contains a denial of service vulnerability that allows unauthenticated attackers to bypass the parser max_tokens limit using long runs of comments. Attackers can submit GraphQL documents of consecutive comments that Lexer.lookahead fully tokenizes before limit checks, consuming CPU and memory proportional to document size.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
Upgrade graphql-core to the fixed release on your line: 3.2.14, 3.3.2. Releases in the affected ranges (>= 3.2.12, < 3.2.14; >= 3.3.0rc1, < 3.3.2) are vulnerable. See the linked advisory for details on affected release lines.
Timeline
- 2026-11-22 CVE published
References
- Releasehttps://github.com/graphql-python/graphql-core/releases/tag/v3.3.2
- Releasehttps://github.com/graphql-python/graphql-core/releases/tag/v3.2.14
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/graphql-core-3.2.12-before-3.2.14-and-3.3-0rc1-before-3.3.2-denial-of-service-via-parser-max-tokens-comment-runs
- Fix commithttps://github.com/graphql-python/graphql-core/commit/f9a7ac64c06fb7957005199e6153ad1c16496c70
- Fix commithttps://github.com/graphql-python/graphql-core/commit/b7e3305e0a96d5b02a600355f56157ca29a94851
- Vulnerable codehttps://github.com/graphql-python/graphql-core/blob/v3.3.1/src/graphql/language/lexer.py#L84-L110
- Vulnerable codehttps://github.com/graphql-python/graphql-core/blob/v3.3.1/src/graphql/language/parser.py#L1479-L1507
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-134795
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-134795
- Severity
- Medium 6.9CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- graphql-core
- Ecosystem
- PyPI
- Affected
- >= 3.2.12, < 3.2.14; >= 3.3.0rc1, < 3.3.2
- Fixed
- 3.2.14, 3.3.2
- Weakness
- CWE-770
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder