# GHSA-P8J8-24JP-8GPC: Exposure of Other Requests' Data via Keyset Pagination Cursors

- Database: GitHub
- Severity: CVSS 5.9 (Medium)
- Published: 2026-10-30
- Modified: 2026-10-30

## Affected versions

- GreenDonut.Data (NuGet): from 16.0.0, fixed in 16.7.3
- GreenDonut.Data (NuGet): from 15.0.0, fixed in 15.1.20
- GreenDonut.Data.EntityFramework (NuGet): from 16.0.0, fixed in 16.7.3
- GreenDonut.Data.EntityFramework (NuGet): from 15.0.0, fixed in 15.1.20
- HotChocolate.Data.EntityFramework (NuGet): from 16.0.0, fixed in 16.7.3
- HotChocolate.Data.EntityFramework (NuGet): from 15.0.0, fixed in 15.1.20
- HotChocolate.Data.EntityFramework (NuGet): from 14.0.0, fixed in 14.3.4
- HotChocolate.Pagination.Core (NuGet): from 14.0.0, fixed in 14.3.4
- HotChocolate.Pagination.EntityFramework (NuGet): from 14.0.0, fixed in 14.3.4

## Description

### Summary

Hot Chocolate can write uninitialized pooled memory into the keyset pagination cursors it returns. Data that the server left in that memory while handling other requests then reaches the client, which can read it by decoding the cursor.

When Hot Chocolate escapes the `:` characters in a cursor key, it searches the rest of the cursor buffer instead of only the bytes it wrote for that key. For a cursor that has outgrown its initial 256-byte buffer, that buffer is an array rented from the shared array pool, and each key written into that array is extended with whatever bytes follow it there, up to the first `:` among them. Cursors are base64-encoded, so those bytes reach the client unchanged.

An application is affected when all of the following hold:

- It paginates with keyset cursors: `ToPageAsync` or `ToBatchPageAsync` from `GreenDonut.Data.EntityFramework` (`HotChocolate.Pagination.EntityFramework` in 14.x), a connection resolved by the cursor paging provider that `AddDbContextCursorPagingProvider()` registers, or a direct call to `CursorFormatter.Format`.
- A paginated query sorts by two or more keys, and in one of its cursors a key other than the last ends exactly at byte 256, counting any page information at the start and the `:` between keys. On a field with sorting enabled (`[UseSorting]` or `UseSorting()`), the client picks the keys with the `order` argument and can repeat them, so it can build such a cursor from keys of any type within the default cost limits. Where the application fixes the sort order, it takes sort values long enough to fill that space, such as strings.

### Fixed Versions

- 16.7.3
- 15.1.20
- 14.3.4

### Impact

A client can read data that other code in the server process left in arrays from the shared array pool, such as the text of other clients' operations and string values written to other clients' responses.

Every key written after the 256-byte mark carries the bytes up to the next `:` in that memory, so a client that adds keys to the `order` argument reads more of it with each cursor. The client cannot choose whose data it receives, and whether an affected cursor carries any data depends on other traffic. Where the sort order is fixed, a client that can set the value of a string sort key, for example a name it chooses, can give that value the length that produces an affected cursor. Integrity and availability are not affected.

This issue is classified as **CWE-908: Use of Uninitialized Resource**.

### Recommendation

Upgrade to one of the fixed releases. A cursor then holds only its page information and key values. Cursors that were not affected are unchanged, and there are no new options.

If an immediate upgrade is not possible, remove sorting from the paginated fields that use these paging methods, and sort them in a fixed order whose key values cannot add up to 256 bytes, such as by ID alone.

## References

- https://github.com/ChilliCream/graphql-platform/security/advisories/GHSA-p8j8-24jp-8gpc

Page: https://cve.now/GHSA-P8J8-24JP-8GPC

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
