CVE-2026-63421
JSON

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 packageVersionsReported by
keystonejs keystone< 6.5.3CVE List
@keystone-6/core (npm)before 6.5.3GitHub Advisory Database

All scores

GitHub_M7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-20CWE-480

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

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

SourceRecordLicence
CVE ListCVE-2026-63421 changed 2026-08-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-cqmq-8755-7xvh changed 2026-08-21CC-BY-4.0
NVDCVE-2026-63421 changed 2026-10-12Public domain