CVE-2026-40324
Last modified
CVE-2026-40324 is a critical-severity vulnerability rated 9.1/10 on the CVSS scale. 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. EPSS estimates a 0.90% chance of exploitation in the next 30 days.
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).
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-40324?
How severe is CVE-2026-40324?
How do I fix CVE-2026-40324?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40319Giskard is an open-source testing framework for AI models. I…5.5
- CVE-2026-4032The CodeColorer plugin for WordPress is vulnerable to Stored…6.1
- CVE-2026-40320Giskard is an open-source testing framework for AI models. I…7.8
- CVE-2026-40321DNN (formerly DotNetNuke) is an open-source web content mana…8
- CVE-2026-40322SiYuan is an open-source personal knowledge management syste…9
- CVE-2026-40323SP1 is a zero‑knowledge virtual machine that proves the corr…7.5
- CVE-2026-40325Masa CMS is a content management system forked from Mura CMS…8.7
- CVE-2026-40326Masa CMS is a content management system forked from Mura CMS…7.1
- CVE-2026-40327Rejected reason: This CVE is a duplicate of another CVE.
- CVE-2026-40328Rejected reason: This CVE is a duplicate of another CVE.
- CVE-2026-40329Masa CMS is an open source content management system. In ver…9.3
- CVE-2026-40330Masa CMS is an open source content management system. In ver…9.3
Are you affected by CVE-2026-40324?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
