Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-40324

CRITICAL 9.1EPSS 65%

Hot Chocolate's Utf8GraphQLParser has Stack Overflow via Deeply Nested GraphQL Documents

Also known as GHSA-qr3m-xw4c-jqw3

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).

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

Vulnerability facts

Affected
HotChocolate.Language < 12.22.7
Fixed in
12.22.7, 13.9.16, 14.3.1, 15.1.14
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
9.1 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HOpen in CVSS calculator
Show all 8 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
EPSS
1.09% chance of exploitation in 30 days (percentile 65, 2026-11-26)
CWE
CWE-674
Published
Modified

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

Package / productAffectedFixedSource
NuGet HotChocolate.Language< 12.22.712.22.7, 13.9.16, 14.3.1, 15.1.14osv
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

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors