Hot Chocolate CVE-2026-40324
CRITICALAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach public GraphQL endpoint
-
DeliveryCraft deeply nested GraphQL document (~40KB)
-
ExploitSubmit query, parser recurses unbounded
-
ExecutionThread stack exhausted, StackOverflowException
-
PersistWorker process terminated, requests dropped
-
ImpactRepeat to sustain outage
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Recursion depth limits
|
| Exploitation Conditions | The target must expose a Hot Chocolate GraphQL endpoint (HotChocolate.Language < 12.22.7 / 13.9.16 / 14.3.1 / 15.1.14) that accepts and parses attacker-supplied query documents - i.e. any standard GraphQL HTTP or WebSocket endpoint reachable by the attacker. The specific trigger is a document with deeply nested selection sets, object values, list values, or list-type references (~40 KB) that drives the recursive-descent Utf8GraphQLParser past the available stack depth. No authentication, no user interaction, and no non-default configuration are required (CVSS PR:N/UI:N); existing limits like MaxAllowedFields=2048, MaxExecutionDepth, complexity analysis, and persisted-query allow-lists do NOT limit exploitation because the crash occurs during parsing, before validation. The main limiting factors for defenders are network reachability of the GraphQL endpoint and any upstream request-body-size cap below ~40 KB; endpoints locked behind persisted-query-only gateways that reject arbitrary documents at the proxy layer (before Hot Chocolate parses them) are effectively out of reach. |
| Impact | Signals conflict and must be weighed together. The CVSS 3.1 base is 9.1 (AV:N/AC:L/PR:N/UI:N) - network-reachable, low-complexity, unauthenticated, no user interaction - which accurately reflects how easy the attack is, and CISA SSVC rates it Automatable=yes, meaning it can be scripted and repeated at scale. Against that, EPSS is only 0.09% (26th percentile), there is no CISA KEV listing, SSVC Exploitation=none, and no public exploit was identified, so there is no evidence of active or widespread exploitation today. The impact is also narrower than the 9.1 headline suggests: this is a pure denial-of-service (process crash), yet the published vector encodes C:N/I:H/A:H - the I:H (high integrity) rating is questionable for a stack-overflow crash with no data manipulation, and SSVC characterizes Technical Impact as only 'partial'. My independent read is that confidentiality and integrity impact are effectively none and this should be scored as availability-only (see assessed vector). Net: real and worth prioritizing for any internet-exposed Hot Chocolate endpoint because exploitation is cheap, self-service, and unauthenticated, but it is an availability/reliability risk (repeatable process restarts) rather than an RCE or data-breach - treat as high-priority patching, not an emergency data-loss event. |
| Exploit ScenarioDerived | An attacker points a script at a public /graphql endpoint and POSTs a compact (~40 KB) GraphQL document consisting of thousands of nested selection sets or nested list/object literals. The parser recurses until the thread stack is exhausted, raising an uncatchable StackOverflowException that kills the worker and drops every concurrent request, background job, and WebSocket subscription on it; the attacker simply resends in a loop to keep the service in a crash-restart cycle. No authentication, special tooling, or user interaction is required, though no public proof-of-concept has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Unauthenticated remote denial-of-service in ChilliCream's Hot Chocolate GraphQL server for .NET (HotChocolate.Language package) lets any client crash the entire worker process by sending a small, deeply nested GraphQL document. Because the recursive-descent Utf8GraphQLParser has no depth limit, ~40 KB of nested selection sets, object/list values, or list types triggers an uncatchable StackOverflowException that terminates the process, dropping all in-flight HTTP requests, IHostedService background tasks, and WebSocket subscriptions on that worker. No public exploit identified at time of analysis and EPSS is low (0.09%), but the attack is trivial (AC:L, PR:N) and CISA SSVC flags it as automatable, so it is a practical availability threat to internet-facing GraphQL endpoints.
RemediationAI
Vendor-released patch: upgrade HotChocolate.Language (and dependent HotChocolate packages) to the fixed release for your line - 12.22.7, 13.9.16, 14.3.1, or 15.1.14 - which adds the MaxAllowedRecursionDepth ParserOptions limit (default 200) and throws a catchable SyntaxException instead of overflowing the stack. Patched releases are at https://github.com/ChilliCream/graphql-platform/releases/tag/15.1.14 (and the equivalent 12.22.7 / 13.9.16 / 14.3.1 tags); the fix PR is https://github.com/ChilliCream/graphql-platform/pull/9528 and advisory GHSA-qr3m-xw4c-jqw3. There is no true application-level workaround because StackOverflowException cannot be caught in .NET and the parser runs before any validation rule. As a partial compensating control, cap HTTP request body size at the reverse proxy or load balancer (e.g. nginx client_max_body_size, an ingress annotation, or IIS maxAllowedContentLength) to well under the observed 40 KB crashing payload; note the trade-off that legitimate large queries or batched operations may be rejected, and that this does not eliminate risk since 40 KB is small, highly compressible (a few hundred bytes gzipped), and below most default limits. Consider running GraphQL workers in a Kubernetes/IIS configuration that restarts crashed processes quickly and isolates blast radius, but understand this only limits, not prevents, the outage - upgrading is the only real fix.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in nuget
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Hot Chocolate is the dominant open-source GraphQL server framework for the .NET/ASP.NET Core ecosystem; the flaw lives in its HotChocolate.Language parsing library (all four affected CPEs point to pkg:nuget/hotchocolate.language). The root cause is CWE-674 (Uncontrolled Recursion): Utf8GraphQLParser is a hand-written recursive-descent parser whose methods (ParseSelectionSet, ParseValueLiteral, ParseObject, ParseList, ParseTypeReference) call themselves once per level of syntactic nesting, consuming a stack frame each time. With no ceiling on nesting depth, an attacker-controlled document forces recursion until the CLR thread stack is exhausted. Critically, .NET has treated StackOverflowException as non-catchable and non-recoverable since .NET 2.0, so it cannot be handled with try/catch and fast-fails the whole process. The parse step also runs before validation, so existing GraphQL defenses (MaxExecutionDepth, complexity analyzers, persisted-query allow-lists, MaxAllowedFields=2048, custom IDocumentValidatorRule) never execute. The vendor fix introduces a MaxAllowedRecursionDepth ParserOptions setting (default 200) enforced across all recursive parser methods, converting the overflow into a catchable SyntaxException.
Know when Kubernetes gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Unauthenticated network attacker sends a trivial crafted document (PR:N/UI:N/AC:L); impact is a process-crash DoS only, so C:N/I:N and A:H, differing from the published I:H.
Primary rating from Vendor (https://github.com/ChilliCream/graphql-platform).
CVSS VectorVendor: https://github.com/ChilliCream/graphql-platform
Lifecycle Timeline
2DescriptionCVE.org
Impact
Hot Chocolate's Utf8GraphQLParser is a recursive descent parser with 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 existing MaxAllowedFields=2048 limit does not help because the crashing payloads contain very few fields.
Severity: Critical (9.1) - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Patches
- v12 line: Fixed in
12.22.7 - v13 line: Fixed in
13.9.16 - v14 line: Fixed in
14.3.1 - v15 line: Fixed in
15.1.14
The fix 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.
Workarounds
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).
References
- Fix for v15: https://github.com/ChilliCream/graphql-platform/pull/9528
Executive ViewAI
ChilliCream's Hot Chocolate GraphQL server (.NET library) contains an unauthenticated remote denial-of-service vulnerability that enables attackers to crash worker processes via crafted GraphQL requests, disrupting service availability for all connected clients. The attack requires minimal technical sophistication and no authentication, creating an immediate risk for internet-facing GraphQL endpoints. A patch is available and deployment should be prioritized to eliminate the availability exposure.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)CVE.org
More in Kubernetes
View allA critical vulnerability in Kubernetes ingress-nginx controller allows unauthenticated attackers with pod network access
Credential-harvesting malware compromised 84 versions of 42 TanStack npm packages on 2026-05-11 via chained GitHub Actio
Kubernetes ingress-nginx contains a configuration injection vulnerability via the mirror-target and mirror-host Ingress
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-url` Ingres
A security issue was discovered in ingress-nginx https://github.com/kubernetes/ingress-nginx where the `auth-tls-match-c
Kubernetes API server in all versions allow an attacker who is able to create a ClusterIP service and set the spec.exter
A security issue was discovered in Kubernetes where a user that can create pods on Windows nodes may be able to escalate
Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. Rated critical severity (CVSS 9.9), this vulne
Unauthenticated remote attackers can trigger complete database overwrites, server-side file reads, and SSRF attacks agai
The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4
Fluentd configuration injection in the kube-logging Logging operator before 6.6.0 allows a namespace-scoped user who can
Authenticated Typebot users can abuse the webhook block (HTTP Request component) in versions prior to 3.13.1 to issue ar
GHSA-qr3m-xw4c-jqw3
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB