CVE-2026-27886

Strapi may leak sensitive data via relational filtering due to lack of query sanitization

Published May 14, 2026 CVSS 4.0 · 9.2 Critical EPSS 1.9% KEV · Not listed
Description
Strapi is an open source headless content management system. Strapi versions starting in 4.0.0 and prior to 5.37.0 did not sufficiently sanitize query parameters when filtering content via relational fields. An unauthenticated attacker could use the `where` query parameter on any publicly-accessible content-type with an `updatedBy` (or other admin-relation) field to perform a boolean-oracle attack against private fields on the joined `admin_users` table, including the `resetPasswordToken` field. Extracting an admin reset token via this oracle made full administrative account takeover possible without authentication. When a filter such as `where[updatedBy][resetPasswordToken][$startsWith]=a` was applied to a public Content API endpoint, the underlying query generation performed a `LEFT JOIN` against the `admin_users` table and emitted a `WHERE` clause referencing the joined column. The query parameter sanitization layer did not block operator chains that traversed into relational target schemas the caller had no read permission on, allowing the response count to be used as a one-bit oracle on any admin-table field. The patch in version 5.37.0 introduces explicit query-parameter sanitization at the controller and service boundary via three new primitives: `strictParam`, `addQueryParams`, and `addBodyParams`. Operator chains that traverse into restricted relational targets are now rejected before reaching the database.

Analysis

AI-generated

Technical impact

Strapi’s query processor failed to sanitize relational filter parameters, allowing an attacker to forge a request to a public Content API endpoint containing a "where" clause that traverses a relationship to an admin table. By crafting boolean operators on hidden fields such as "resetPasswordToken", the attacker can reveal whether a particular token value exists. This Boolean oracle can be exploited to extract an admin reset token, which in turn enables the attacker to perform a full administrative account takeover without any credentials. The flaw is a classic example of information exposure (CWE‑200) and path traversal into restricted relational data (CWE‑22, CWE‑943).

Affected Systems

The vulnerability exists in Strapi versions from 4.0.0 up to, but not including, 5.37.0. Any installation of these releases that exposes a public content type with an "updatedBy" or similar admin-relation field is jeopardised.

Risk and Exploitability

The CVSS score is 9.2, indicating critical severity. The EPSS score is 2%, suggesting that the vulnerability is considered somewhat likely to be exploited. The absence of authentication on the affected endpoints makes the attack vector trivial for an attacker who can reach the public API. The flaw is not currently listed in CISA KEV, but its exploitation would have severe consequences. Attackers can trigger the Boolean oracle by sending simple GET requests and interpreting response counts, making the vulnerability highly exploitable in practice.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Strapi to version 5.37.0 or later to receive the update-parameter sanitization primitives that reject illegitimate relational filter chains before reaching the database.
  • If an upgrade cannot be performed immediately, disable public read access to all content types that contain admin-relation fields, or remove those fields from public schemas altogether.
  • Implement a temporary request filter that blocks any `where` clause referencing the `admin_users` table until the patch is applied.

Generated by OpenCVE AI on September 23, 2026 at 16:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-rjg2-95x7-8qmx Strapi may leak sensitive data via relational filtering due to lack of query sanitization
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:2.3:a:strapi:strapi:*:*:*:*:*:node.js:*:*
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

Type Values Removed Values Added
First Time appeared Strapi
Strapi strapi
Vendors & Products Strapi
Strapi strapi
Type Values Removed Values Added
Description Strapi is an open source headless content management system. Strapi versions starting in 4.0.0 and prior to 5.37.0 did not sufficiently sanitize query parameters when filtering content via relational fields. An unauthenticated attacker could use the `where` query parameter on any publicly-accessible content-type with an `updatedBy` (or other admin-relation) field to perform a boolean-oracle attack against private fields on the joined `admin_users` table, including the `resetPasswordToken` field. Extracting an admin reset token via this oracle made full administrative account takeover possible without authentication. When a filter such as `where[updatedBy][resetPasswordToken][$startsWith]=a` was applied to a public Content API endpoint, the underlying query generation performed a `LEFT JOIN` against the `admin_users` table and emitted a `WHERE` clause referencing the joined column. The query parameter sanitization layer did not block operator chains that traversed into relational target schemas the caller had no read permission on, allowing the response count to be used as a one-bit oracle on any admin-table field. The patch in version 5.37.0 introduces explicit query-parameter sanitization at the controller and service boundary via three new primitives: `strictParam`, `addQueryParams`, and `addBodyParams`. Operator chains that traverse into restricted relational targets are now rejected before reaching the database.
Title Strapi may leak sensitive data via relational filtering due to lack of query sanitization
Weaknesses CWE-200
CWE-22
CWE-943
References
Metrics cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-943

    Improper Neutralization of Special Elements in Data Query Logic

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 14, 2026, 7:50 PM
Reserved
Feb 24, 2026, 3:19 PM
Status
Analyzed
Published
May 14, 2026, 7:16 PM
Modified
Nov 11, 2026, 8:10 PM