Skip to main content
Vulnerability Database/CVE-2025-46720

CVE-2025-46720: Keystonejs Keystone Information Disclosure

CVE-2025-46720 is an information disclosure flaw in Keystonejs Keystone that allows attackers to bypass access controls and probe unreadable fields. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2025-46720 Overview

CVE-2025-46720 affects Keystone, a Node.js content management system developed by KeystoneJS. The vulnerability allows attackers to bypass {field}.isFilterable access control in update and delete GraphQL mutations by submitting multiple unique filters in a where clause. Attackers can use these filters as an oracle to probe the existence or value of fields that would otherwise be unreadable. The flaw affects projects relying on default or dynamic isFilterable behavior and has been patched in @keystone-6/core version 6.5.0. The weakness is classified as information exposure [CWE-200].

Critical Impact

Authenticated attackers can infer the values of protected fields through filter-based oracle attacks against update and delete mutations, defeating field-level filterability controls.

Affected Products

  • @keystone-6/core versions prior to 6.5.0
  • Keystone projects using dynamic isFilterable functions
  • Keystone lists relying on default defaultIsFilterable behavior

Discovery Timeline

  • 2025-05-05 - CVE-2025-46720 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-46720

Vulnerability Analysis

Keystone enforces field-level filtering restrictions through the isFilterable and defaultIsFilterable configuration options. These controls prevent external callers from using filters as a discovery mechanism against sensitive fields. The access control is honored during findMany queries, but the enforcement path for update and delete mutations fails to apply the same restrictions when more than one unique filter value is supplied.

When a mutation includes a where clause containing multiple unique filters such as id and email, Keystone attempts to match records using every supplied filter. Filters that field.isFilterable or list.defaultIsFilterable would normally reject are evaluated anyway. A successful match confirms the presence of a specific value, turning the mutation into a confirmation oracle.

Root Cause

The root cause is incomplete enforcement of isFilterable access control in the mutation pipeline. The GraphQL resolvers responsible for update and delete operations accept multi-field unique where inputs without validating each filter against the configured filterability rules. The access control pipeline short-circuits when at least one unique filter is permitted, allowing additional filters to pass through unchecked.

Attack Vector

An attacker with permission to issue update or delete mutations constructs a where clause combining a legitimate unique filter with a probing filter against a protected field. The server executes the lookup, and the response differentiates between a match and a non-match. By iterating candidate values, the attacker enumerates protected field contents one guess at a time. The attack requires network access to the GraphQL endpoint and low-privilege authentication.

See the KeystoneJS Security Advisory GHSA-hg9m-67mm-7pg3 for technical details.

Detection Methods for CVE-2025-46720

Indicators of Compromise

  • GraphQL update or delete mutations whose where clause combines multiple unique filters, especially filters targeting fields marked isFilterable: false dynamically.
  • Repeated mutation requests from the same client that iterate values against a protected field such as email, token, or resetSecret.
  • Elevated error-to-success ratios on update or delete operations that correlate with enumeration patterns.

Detection Strategies

  • Enable GraphQL request logging and alert on mutations whose where input contains more than one unique field.
  • Correlate authenticated session IDs against mutation volume and distinct candidate values submitted per protected field.
  • Review application logs for sequences of update or delete requests that target the same record using varying secondary filters.

Monitoring Recommendations

  • Instrument the Keystone GraphQL layer to record the field set used in each mutation where clause.
  • Forward application and reverse-proxy logs into a centralized analytics platform for pattern analysis across sessions.
  • Set thresholds on mutation request rates per user and alert when enumeration-like behavior exceeds baseline.

How to Mitigate CVE-2025-46720

Immediate Actions Required

  • Upgrade @keystone-6/core to version 6.5.0 or later across all environments.
  • Audit list and field schemas for sensitive fields that rely on dynamic isFilterable functions and convert them to static isFilterable: false.
  • Review GraphQL access logs for prior enumeration attempts against protected fields.

Patch Information

The issue is patched in @keystone-6/core version 6.5.0. Full remediation details are available in the KeystoneJS Security Advisory GHSA-hg9m-67mm-7pg3.

Workarounds

  • Set isFilterable: false statically for sensitive fields so the access control pipeline rejects the filter before the mutation resolver evaluates it.
  • Set {field}.graphql.omit.read: true on protected fields to remove filtering by those fields from the generated GraphQL schema.
  • Deny update and delete operations entirely for lists that expose sensitive fields until the upgrade is deployed.
bash
# Upgrade Keystone to the patched release
npm install @keystone-6/core@^6.5.0

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.