Skip to main content
Menu
Advisories

Denial of Service via Node ID Type Name Caching

GHSA-JRHG-QC42-WQVWPublished Updated GitHub

Description

Hot Chocolate 16 kept a serializer for every type name it saw inside a client-supplied Global ID, including names that are not part of the schema, in a table that is never cleared. A client could add entries to that table without limit, making each later request that parses Global IDs cost more CPU and memory than the one before, until the process is restarted.

An application is affected when all of the following hold:

  • It runs a Hot Chocolate server on 16.0.0 or later with Global Object Identification enabled (AddGlobalObjectIdentification()).
  • It accepts requests from clients that carry Global IDs, through node/nodes, [ID] arguments or input fields, or ID filters. This is the normal Relay setup.

A server without Global Object Identification is not affected. Versions before 16.0.0 are not affected.

Fixed Versions

  • 16.7.4

Impact

Any client that can send Global IDs to the endpoint can make the server slower for every later request that parses IDs, and the effect persists for the life of the schema. After sending enough distinct type names, a short burst of requests that stays within all default limits can keep the host's CPU busy for minutes and lock other clients out; the server recovers after the burst, but each request leaves it in a worse state until it is restarted. No authentication is required and no data is read or changed.

This issue is classified as CWE-770: Allocation of Resources Without Limits or Throttling.

Recommendation

Upgrade to 16.7.4 or later. A type name in a Global ID that the schema does not define is then resolved for that request only and is not retained, so parsing IDs costs the same regardless of what clients have sent before.

Affected versions

References

GitHub · ChilliCream/graphql-platform