# 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

> Unauthenticated attackers can bypass max_tokens limits with comment runs, exhausting CPU and memory in services using graphql-core.

- **Severity:** Medium 6.9 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Harmful if only installed:** No
- **Needs a specific call:** No
- **Fix available:** No
- **Published:** 22 Nov 2026
- **Updated:** 23 Nov 2026
- **Also known as:** DEBIAN-CVE-2026-134795, GHSA-5pww-59wv-hj9w, UBUNTU-CVE-2026-134795

## What is CVE-2026-134795?

CVE-2026-134795 is a medium-severity denial of service vulnerability in graphql-python graphql-core, published on 22 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

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.

Weakness: CWE-770 (Allocation of Resources Without Limits or Throttling)

## Which versions are affected by CVE-2026-134795?

2 open source packages ship an affected version, including graphql-core.

An affected version is exposed as installed. No special setting or call is needed.


| Package | Ecosystem | PURL | Affected | Fixed in |
| --- | --- | --- | --- | --- |
| `graphql-core` | PyPI | `pkg:pypi/graphql-core` | From 3.2.12 | 3.2.14 |
| `graphql-core` | PyPI | `pkg:pypi/graphql-core` | From 3.3.0rc1 | 3.3.2 |

## How do I fix CVE-2026-134795?

Upgrade graphql-core to a fixed version for your release line: 3.3.2 or 3.2.14.

## Is CVE-2026-134795 being exploited?

There is no known exploitation of CVE-2026-134795 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-134795 and fix it if it is affected.

What it is: CVE-2026-134795 is a medium-severity denial of service vulnerability in graphql-python graphql-core, published on 22 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-134795 in the wild and no public exploit code.
Exposure: An affected version is exposed as installed. No special setting or call is needed.

Affected packages and fixed versions:
- graphql-core (PyPI): affected from 3.2.12; fixed in 3.2.14
- graphql-core (PyPI): affected from 3.3.0rc1; fixed in 3.3.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-134795/ (Markdown: https://insights.sbomify.com/CVE-2026-134795/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-134795
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-134795
- OSV: https://osv.dev/vulnerability/CVE-2026-134795

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-134795/
Summaries are generated and may contain mistakes; the official description above is the record.
