7.5high
Keystone: `graphql.maxTake` bypass with negative `take`
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.47% (higher than 42% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-cqmq-8755-7xvh
Description
Keystone is a content management system for Node.js. Prior to 6.5.3, the findMany resolver in packages/core/src/lib/core/queries/resolvers.ts compares the signed take argument directly with graphql.maxTake, allowing a remote unauthenticated GraphQL client to provide a negative take value whose magnitude exceeds the configured bound. The bypass also applies to relationship queries and can return more records than the developer intended, potentially exhausting service resources. This issue is fixed in version 6.5.3.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| keystonejs keystone | < 6.5.3 | CVE List |
| @keystone-6/core (npm) | before 6.5.3 | GitHub Advisory Database |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
Keystone is a content management system for Node.js. Prior to 6.5.3, the findMany resolver in packages/core/src/lib/core/queries/resolvers.ts compares the signed take argument directly with graphql.maxTake, allowing a remote unauthenticated GraphQL client to provide a negative take value whose magnitude exceeds the configured bound. The bypass also applies to relationship queries and can return more records than the developer intended, potentially exhausting service resources. This issue is fixed in version 6.5.3.
GitHub Advisory Database
Summary
The value of graphql.maxTake can be bypassed by providing a negative input.
This can be used to exceed the developer's intended graphql.maxTake value, allowing queries to return results in excess of the graphql.maxTake value set.
Impact
This affects any project relying on graphql.maxTake to bound the number of items returned per query.
Patches
This issue has been patched in @keystone-6/core version 6.5.3.
If you cannot patch, you can workaround this by restricting take input values in your GraphQL queries to the bounded value, or by blocking negative values.
Credit
This issue was found by Haxset's Security Scanner and validated by their team.
NVD (es)
Keystone es un sistema de gestión de contenidos para Node.js. Antes de la versión 6.5.3, el resolvedor findMany en packages/core/src/lib/core/queries/resolvers.ts compara el argumento 'take' con signo directamente con graphql.maxTake, permitiendo que un cliente GraphQL remoto no autenticado proporcione un valor 'take' negativo cuya magnitud excede el límite configurado. La omisión también se aplica a las consultas de relaciones y puede devolver más registros de los que el desarrollador pretendía, agotando potencialmente los recursos del servicio. Este problema se solucionó en la versión 6.5.3.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-63421 changed 2026-08-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cqmq-8755-7xvh changed 2026-08-21 | CC-BY-4.0 |
| NVD | CVE-2026-63421 changed 2026-10-12 | Public domain |