{"answers":{"affected":"8 open source packages ship an affected version, including HotChocolate.Language.","exploited":"There is no known exploitation of CVE-2026-40324 in the wild and no public exploit code.","fix":"Upgrade HotChocolate.Language to a fixed version for your release line: 12.22.7, 13.9.16, 14.3.1 or 15.1.14.","what":"CVE-2026-40324 is a critical denial of service vulnerability in ChilliCream graphql-platform, published on 17 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40324 and fix it if it is affected.\n\nWhat it is: CVE-2026-40324 is a critical denial of service vulnerability in ChilliCream graphql-platform, published on 17 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-40324 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- HotChocolate.Language (NuGet): affected all versions; fixed in 12.22.7\n- HotChocolate.Language (NuGet): affected all versions; fixed in 12.22.7\n- HotChocolate.Language (NuGet): affected from 13.0.0; fixed in 13.9.16\n- HotChocolate.Language (NuGet): affected from 13.0.0; fixed in 13.9.16\n- HotChocolate.Language (NuGet): affected from 14.0.0; fixed in 14.3.1\n- HotChocolate.Language (NuGet): affected from 14.0.0; fixed in 14.3.1\n- HotChocolate.Language (NuGet): affected from 15.0.0; fixed in 15.1.14\n- HotChocolate.Language (NuGet): affected from 15.0.0; fixed in 15.1.14\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40324/ (Markdown: https://insights.sbomify.com/CVE-2026-40324/index.md)","id":"CVE-2026-40324","markdown":"https://insights.sbomify.com/CVE-2026-40324/index.md","name":"CVE-2026-40324","record":{"aliases":["GHSA-qr3m-xw4c-jqw3"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"GraphQL server library","requires_auth":"none","summary":"Attackers can crash the GraphQL server process by sending deeply nested documents, causing a stack overflow that terminates the worker.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"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).","ecosystems":["NuGet"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Hot Chocolate's Utf8GraphQLParser has Stack Overflow via Deeply Nested GraphQL Documents","id":"CVE-2026-40324","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":8,"n_references":12,"next":{"headline":"Masa CMS CSRF in content restoration allows unauthorized restoration of deleted content","id":"CVE-2026-40325"},"packages":[{"ecosystem":"NuGet","fixed":["12.22.7"],"introduced":["0"],"last_affected":[],"package":"HotChocolate.Language","purl":null,"source":"GHSA-qr3m-xw4c-jqw3"},{"ecosystem":"NuGet","fixed":["12.22.7"],"introduced":["0"],"last_affected":[],"package":"HotChocolate.Language","purl":"pkg:nuget/HotChocolate.Language","source":"GHSA-qr3m-xw4c-jqw3"},{"ecosystem":"NuGet","fixed":["13.9.16"],"introduced":["13.0.0"],"last_affected":[],"package":"HotChocolate.Language","purl":null,"source":"GHSA-qr3m-xw4c-jqw3"},{"ecosystem":"NuGet","fixed":["13.9.16"],"introduced":["13.0.0"],"last_affected":[],"package":"HotChocolate.Language","purl":"pkg:nuget/HotChocolate.Language","source":"GHSA-qr3m-xw4c-jqw3"},{"ecosystem":"NuGet","fixed":["14.3.1"],"introduced":["14.0.0"],"last_affected":[],"package":"HotChocolate.Language","purl":null,"source":"GHSA-qr3m-xw4c-jqw3"},{"ecosystem":"NuGet","fixed":["14.3.1"],"introduced":["14.0.0"],"last_affected":[],"package":"HotChocolate.Language","purl":"pkg:nuget/HotChocolate.Language","source":"GHSA-qr3m-xw4c-jqw3"},{"ecosystem":"NuGet","fixed":["15.1.14"],"introduced":["15.0.0"],"last_affected":[],"package":"HotChocolate.Language","purl":null,"source":"GHSA-qr3m-xw4c-jqw3"},{"ecosystem":"NuGet","fixed":["15.1.14"],"introduced":["15.0.0"],"last_affected":[],"package":"HotChocolate.Language","purl":"pkg:nuget/HotChocolate.Language","source":"GHSA-qr3m-xw4c-jqw3"}],"prev":{"headline":"SP1 V6 Recursion Circuit Row-Count Binding Gap","id":"CVE-2026-40323"},"products":["graphql-platform"],"published":"2026-04-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-20","vendors":["ChilliCream"]},"summary":"Attackers can crash the GraphQL server process by sending deeply nested documents, causing a stack overflow that terminates the worker.","url":"https://insights.sbomify.com/CVE-2026-40324/"}