9.1
CRITICAL CVSS 3.1
CVE-2026-40324
Hot Chocolate's Utf8GraphQLParser has Stack Overflow via Deeply Nested GraphQL Documents
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).

INFO

Published Date :

April 18, 2026, 12:16 a.m.

Last Modified :

Oct. 26, 2026, 10:10 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2026-40324 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Chillicream graphql-platform
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 CRITICAL [email protected]
CVSS 3.1 CRITICAL MITRE-CVE
Solution
Upgrade to patched versions to fix stack overflow exceptions caused by deep recursion.
  • Upgrade Hot Chocolate to version 12.22.7 or later.
  • Upgrade Hot Chocolate to version 13.9.16 or later.
  • Upgrade Hot Chocolate to version 14.3.1 or later.
  • Upgrade Hot Chocolate to version 15.1.14 or later.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-40324 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-40324 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-40324 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-40324 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Translated by [email protected]

    Oct. 26, 2026

    Action Type Old Value New Value
    Added Translation Title: graphql-platform de ChilliCream, Description: Hot Chocolate es un servidor GraphQL de código abierto. Antes de las versiones 12.22.7, 13.9.16, 14.3.1 y 15.1.14, el analizador de descenso recursivo de Hot Chocolate Utf8GraphQLParser no tiene límite de profundidad de recursión. Un documento GraphQL manipulado con conjuntos de selección, valores de objeto, valores de lista o tipos de lista profundamente anidados puede desencadenar una StackOverflowException en cargas útiles tan pequeñas como 40 KB. Debido a que StackOverflowException no se puede capturar en .NET (desde .NET 2.0), el proceso de trabajo completo se termina inmediatamente. Todas las solicitudes HTTP en curso, las tareas de IHostedService en segundo plano y las suscripciones WebSocket abiertas en ese trabajador se descartan. El orquestador (Kubernetes, IIS, etc.) debe reiniciar el proceso. Esto ocurre antes de que se ejecuten las reglas de validación - MaxExecutionDepth, analizadores de complejidad, listas de permitidos de consultas persistentes e implementaciones personalizadas de IDocumentValidatorRule no pueden interceptar el fallo porque Utf8GraphQLParser.Parse se invoca antes de la validación. El límite MaxAllowedFields=2048 no ayuda porque las cargas útiles que causan el fallo contienen muy pocos campos. La corrección en las versiones 12.22.7, 13.9.16, 14.3.1 y 15.1.14 añade una opción MaxAllowedRecursionDepth a ParserOptions con un valor predeterminado seguro, y la aplica en todos los métodos de analizador recursivos (ParseSelectionSet, ParseValueLiteral, ParseObject, ParseList, ParseTypeReference, etc.). Cuando se excede el límite, se lanza una SyntaxException capturable en lugar de desbordar la pila. No hay una solución alternativa a nivel de aplicación. StackOverflowException no se puede capturar en .NET. La única mitigación es actualizar a una versión parcheada. Los operadores pueden reducir (pero no eliminar) el riesgo limitando el tamaño del cuerpo de la solicitud HTTP en la capa del proxy inverso o del equilibrador de carga, aunque la carga útil más pequeña que causa el fallo (40 KB) está muy por debajo de la mayoría de los límites predeterminados de tamaño de cuerpo y es altamente compresible (aproximadamente unos pocos cientos de bytes mediante gzip).
  • CVE Modified by [email protected]

    Jun. 17, 2026

    Action Type Old Value New Value
    Added Affected [{'vendor': 'ChilliCream', 'product': 'graphql-platform', 'versions': [{'status': 'affected', 'version': '< 12.22.7'}, {'status': 'affected', 'version': '>= 13.0.0, < 13.9.16'}, {'status': 'affected', 'version': '>= 14.0.0, < 14.3.1'}, {'status': 'affected', 'version': '>= 15.0.0, < 15.1.14'}]}]
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 17, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-40324', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'yes'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-04-20T16:14:16.099717Z'}
  • New CVE Received by [email protected]

    Apr. 18, 2026

    Action Type Old Value New Value
    Added 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).
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
    Added CWE CWE-674
    Added Reference https://github.com/ChilliCream/graphql-platform/commit/08c0caa42ca33c121bbed49d2db892e5bf6fb541
    Added Reference https://github.com/ChilliCream/graphql-platform/commit/4cbaf67d366f800fc1e484bc5c06dfcf27b45023
    Added Reference https://github.com/ChilliCream/graphql-platform/commit/b185eb276c9ee227bd44616ff113be7f01a66c69
    Added Reference https://github.com/ChilliCream/graphql-platform/commit/b9271e6a500484c002fd528dcd34d1a9b445480f
    Added Reference https://github.com/ChilliCream/graphql-platform/pull/9528
    Added Reference https://github.com/ChilliCream/graphql-platform/pull/9530
    Added Reference https://github.com/ChilliCream/graphql-platform/pull/9531
    Added Reference https://github.com/ChilliCream/graphql-platform/releases/tag/12.22.7
    Added Reference https://github.com/ChilliCream/graphql-platform/releases/tag/13.9.16
    Added Reference https://github.com/ChilliCream/graphql-platform/releases/tag/14.3.1
    Added Reference https://github.com/ChilliCream/graphql-platform/releases/tag/15.1.14
    Added Reference https://github.com/ChilliCream/graphql-platform/security/advisories/GHSA-qr3m-xw4c-jqw3
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.