# CVE-2026-40324: Hot Chocolate's Utf8GraphQLParser has Stack Overflow via Deeply Nested GraphQL Documents

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **CVSS:** 9.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.09% (percentile 65, 2026-11-26)
- **CWE:** CWE-674
- **Aliases:** GHSA-qr3m-xw4c-jqw3
- **Published:** 2026-04-16T21:09:40.000Z
- **Modified:** 2026-10-26T22:10:00.163Z

## Who should check

- Projects that depend on NuGet package HotChocolate.Language (\< 12.22.7)
- Anyone running ChilliCream graphql-platform \< 12.22.7; \>= 13.0.0, \< 13.9.16; \>= 14.0.0, \< 14.3.1; \>= 15.0.0, \< 15.1.14

## Description

Hot Chocolate is an open-source GraphQL server. Prior to versions 12.22.7, 13.9.16, 14.3.1, and 15.1.14, Hot Chocolate's recursive descent parser \`Utf8GraphQLParser\` has no recursion depth limit. A crafted GraphQL document with deeply nested selection sets, object values, list values, or list types can trigger a \`StackOverflowException\` on payloads as small as 40 KB. Because \`StackOverflowException\` is uncatchable in .NET (since .NET 2.0), the entire worker process is terminated immediately. All in-flight HTTP requests, background \`IHostedService\` tasks, and open WebSocket subscriptions on that worker are dropped. The orchestrator (Kubernetes, IIS, etc.) must restart the process. This occurs before any validation rules run — \`MaxExecutionDepth\`, complexity analyzers, persisted query allow-lists, and custom \`IDocumentValidatorRule\` implementations cannot intercept the crash because \`Utf8GraphQLParser.Parse\` is invoked before validation. The \`MaxAllowedFields=2048\` limit does not help because the crashing payloads contain very few fields. The fix in versions 12.22.7, 13.9.16, 14.3.1, and 15.1.14 adds a \`MaxAllowedRecursionDepth\` option to \`ParserOptions\` with a safe default, and enforces it across all recursive parser methods (\`ParseSelectionSet\`, \`ParseValueLiteral\`, \`ParseObject\`, \`ParseList\`, \`ParseTypeReference\`, etc.). When the limit is exceeded, a catchable \`SyntaxException\` is thrown instead of overflowing the stack. There is no application-level workaround. \`StackOverflowException\` cannot be caught in .NET. The only mitigation is to upgrade to a patched version. Operators can reduce (but not eliminate) risk by limiting HTTP request body size at the reverse proxy or load balancer layer, though the smallest crashing payload (40 KB) is well below most default body size limits and is highly compressible (~few hundred bytes via gzip).

## Affected and fixed versions

- NuGet `HotChocolate.Language`: affected \< 12.22.7; fixed 12.22.7, 13.9.16, 14.3.1, 15.1.14 (osv)
- ChilliCream graphql-platform: \< 12.22.7; \>= 13.0.0, \< 13.9.16; \>= 14.0.0, \< 14.3.1; \>= 15.0.0, \< 15.1.14 (cvelist)

## Mitigation

- Upgrade HotChocolate.Language to one of 12.22.7, 13.9.16, 14.3.1, 15.1.14 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-40324. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-40324.md
Affected: HotChocolate.Language < 12.22.7
Fixed in: 12.22.7, 13.9.16, 14.3.1, 15.1.14

Steps:
1. Search this machine and project for HotChocolate.Language (NuGet), ChilliCream graphql-platform: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-40324 being exploited?

There is no confirmed exploitation: CVE-2026-40324 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.09% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-40324?

Critical: CVSS 9.1 (v3.1, scored by CNA). Remote, no login needed.

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

HotChocolate.Language \< 12.22.7.

### Is there a fix for CVE-2026-40324?

Yes. Fixed in 12.22.7, 13.9.16, 14.3.1, 15.1.14. Upgrade HotChocolate.Language to one of 12.22.7, 13.9.16, 14.3.1, 15.1.14 (or later in the same release line).

### How do I check if I'm affected by CVE-2026-40324?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/ChilliCream/graphql-platform/security/advisories/GHSA-qr3m-xw4c-jqw3>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-40324>
- patch: <https://github.com/ChilliCream/graphql-platform/pull/9528>
- patch: <https://github.com/ChilliCream/graphql-platform/pull/9530>
- patch: <https://github.com/ChilliCream/graphql-platform/pull/9531>
- patch: <https://github.com/ChilliCream/graphql-platform/commit/08c0caa42ca33c121bbed49d2db892e5bf6fb541>
- patch: <https://github.com/ChilliCream/graphql-platform/commit/4cbaf67d366f800fc1e484bc5c06dfcf27b45023>
- patch: <https://github.com/ChilliCream/graphql-platform/commit/b185eb276c9ee227bd44616ff113be7f01a66c69>
- patch: <https://github.com/ChilliCream/graphql-platform/commit/b9271e6a500484c002fd528dcd34d1a9b445480f>
- other: <https://github.com/ChilliCream/graphql-platform/releases/tag/12.22.7>
- other: <https://github.com/ChilliCream/graphql-platform/releases/tag/13.9.16>
- other: <https://github.com/ChilliCream/graphql-platform/releases/tag/14.3.1>
- other: <https://github.com/ChilliCream/graphql-platform/releases/tag/15.1.14>
- other: <https://github.com/ChilliCream/graphql-platform>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-40324>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-qr3m-xw4c-jqw3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-40324> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-40324>
