GHSA-qr3m-xw4c-jqw3

Suggest an improvement
Source
https://github.com/advisories/GHSA-qr3m-xw4c-jqw3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qr3m-xw4c-jqw3/GHSA-qr3m-xw4c-jqw3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-qr3m-xw4c-jqw3
Aliases
Published
2026-04-16T21:09:40Z
Modified
2026-05-05T16:10:29Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H CVSS Calculator
Summary
ChilliCream GraphQL Platform: Utf8GraphQLParser Stack Overflow via Deeply Nested GraphQL Documents
Details

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

Database specific
{
    "cwe_ids":  [
        "CWE-674"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-04-16T21:09:40Z",
    "nvd_published_at":  "2026-04-18T00:16:36Z",
    "severity":  "CRITICAL"
}
References

Affected packages

NuGet / HotChocolate.Language

Package

Name
HotChocolate.Language
View open source insights on deps.dev
Purl
pkg:nuget/HotChocolate.Language

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
12.22.7

Affected versions

0.*
0.1.0
0.1.1
0.1.2
0.1.3
0.1.4
0.2.0
0.2.1
0.2.2
0.2.3
0.3.0-preview-1
0.3.0-preview-2
0.3.0
0.3.1
0.3.2
0.4.0-preview-1
0.4.0-preview-2
0.4.0-preview-3
0.4.0
0.4.1
0.4.2
0.4.3
0.4.4
0.4.5-preview-1
0.4.5-preview-2
0.4.5-preview-3
0.4.5
0.4.6
0.5.0-preview-1
0.5.0-preview-2
0.5.0-preview-3
0.5.0-preview-4
0.5.0-preview-5
0.5.0-preview-6
0.5.0-preview-7
0.5.0
0.5.1
0.5.2
0.5.3-preview-1
0.6.0-preview-2
0.6.0-preview-3
0.6.0-preview-4
0.6.0-preview-5
0.6.0-preview-6
0.6.0-preview-7
0.6.0-preview-8
0.6.0-preview-9
0.6.0-rc-1
0.6.0
0.6.1
0.6.2
0.6.3
0.6.4
0.6.5
0.6.6
0.6.7
0.6.8
0.6.9
0.6.10
0.6.11
0.7.0
0.8.0
0.8.1
0.8.2
1.*
1.0.0-alpha10
1.0.0-alpha6
1.0.0-alpha7
1.0.0-alpha8
1.0.0-alpha9
1.0.0-preview-0001
1.0.0-preview-0002
1.0.0-preview-0003
1.0.0-preview-0004
1.0.0-preview-0005
1.0.0-preview-0006
1.0.0-preview-0007
1.0.0-preview-0008
1.0.0-preview-0009
1.0.0-preview-0010
1.0.0-preview-0011
1.0.0-preview-0012
1.0.0-preview-0013
1.0.0-preview-0014
1.0.0-preview-0015
1.0.0-preview-0016
1.0.0-preview-0017
1.0.0-preview-0019
1.0.0-preview-0020
1.0.0-preview-0021
1.0.0-preview-0022
1.0.0-preview-0023
1.0.0-preview-0024
9.*
9.0.0
9.0.1
9.0.2
9.0.3
9.0.4
10.*
10.0.0
10.0.1
10.1.0
10.1.1
10.2.0
10.3.0
10.3.1
10.3.2
10.3.3
10.3.4
10.3.5
10.3.6
10.4.0
10.4.1
10.4.2
10.4.3
10.5.0
10.5.1
10.5.2
10.5.3
10.5.4
10.5.5
11.*
11.0.0
11.0.1
11.0.2
11.0.3
11.0.4
11.0.5
11.0.6
11.0.7
11.0.8
11.0.9
11.1.0
11.2.0
11.2.1
11.2.2
11.3.0
11.3.1
11.3.2
11.3.3
11.3.4
11.3.5
11.3.6
11.3.7
11.3.8
12.*
12.0.0
12.0.1
12.1.0
12.1.1
12.2.0
12.2.1
12.2.2
12.3.0
12.3.1
12.3.2
12.4.0
12.4.1
12.5.0
12.6.0
12.6.1
12.6.2
12.7.0
12.8.0
12.8.1
12.8.2
12.9.0
12.10.0
12.11.0
12.11.1
12.12.0
12.12.1
12.13.0
12.13.1
12.13.2
12.14.0
12.15.0
12.15.1
12.15.2
12.15.3
12.15.4
12.16.0
12.16.2
12.17.0
12.18.0
12.19.2
12.20.0
12.21.0
12.22.0
12.22.1
12.22.2
12.22.3
12.22.4
12.22.5
12.22.6

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qr3m-xw4c-jqw3/GHSA-qr3m-xw4c-jqw3.json"

NuGet / HotChocolate.Language

Package

Name
HotChocolate.Language
View open source insights on deps.dev
Purl
pkg:nuget/HotChocolate.Language

Affected ranges

Type
ECOSYSTEM
Events
Introduced
13.0.0
Fixed
13.9.16

Affected versions

13.*
13.0.0
13.0.1
13.0.2
13.0.3
13.0.4
13.0.5
13.1.0
13.2.0
13.2.1
13.3.0
13.3.1
13.3.2
13.3.3
13.4.0
13.5.0
13.5.1
13.6.0
13.6.1
13.7.0
13.8.0
13.8.1
13.9.0
13.9.1
13.9.2
13.9.3
13.9.4
13.9.5
13.9.6
13.9.7
13.9.8
13.9.9
13.9.10
13.9.11
13.9.12
13.9.13
13.9.14
13.9.15

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qr3m-xw4c-jqw3/GHSA-qr3m-xw4c-jqw3.json"

NuGet / HotChocolate.Language

Package

Name
HotChocolate.Language
View open source insights on deps.dev
Purl
pkg:nuget/HotChocolate.Language

Affected ranges

Type
ECOSYSTEM
Events
Introduced
14.0.0
Fixed
14.3.1

Affected versions

14.*
14.0.0
14.1.0
14.2.0
14.3.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qr3m-xw4c-jqw3/GHSA-qr3m-xw4c-jqw3.json"

NuGet / HotChocolate.Language

Package

Name
HotChocolate.Language
View open source insights on deps.dev
Purl
pkg:nuget/HotChocolate.Language

Affected ranges

Type
ECOSYSTEM
Events
Introduced
15.0.0
Fixed
15.1.14

Affected versions

15.*
15.0.0
15.0.1
15.0.2
15.0.3
15.1.0
15.1.1
15.1.2
15.1.3
15.1.4
15.1.5
15.1.6
15.1.7
15.1.8
15.1.9
15.1.10
15.1.11
15.1.12
15.1.13

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-qr3m-xw4c-jqw3/GHSA-qr3m-xw4c-jqw3.json"