9.2critical
Strapi may leak sensitive data via relational filtering due to lack of query sanitization
- Severity
- 9.2critical CVSS:4.0 by GitHub_M
- Exploit likelihood
- 1.92% (higher than 80% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-rjg2-95x7-8qmx
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| strapi strapi | >= 4.0.0, < 5.37.0, from 4.0.0 before 5.37.0 | CVE List, NVD |
| @strapi/strapi (npm) | from 4.0.0 before 5.37.0 | GitHub Advisory Database |
All scores
| GitHub_M | 9.2critical CVSS:4.0 | 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 |
| GitHub | critical CVSS:4.0 | 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 |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Summary of CVE-2026-27886 Vulnerability Details
- CVE: CVE-2026-27886
- CVSS v3.1 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(9.3 — Critical) - Affected Versions:
@strapi/strapi<=5.36.1 - How to Patch: Immediately update your Strapi to >=5.37.0
Description of CVE-2026-27886
Strapi versions 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 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.
IoC's for CVE-2026-27886
Indicators that an instance running an unpatched version may have been exploited:
- Server access logs containing query strings traversing into admin-relation private fields. Regex:
\?(.*&)?where\[(updatedBy|createdBy|publishedBy)\]\[(email|password|resetPasswordToken|confirmationToken|firstname|lastname|preferedLanguage)\]\[\$(startsWith|contains|eq|gt|lt|ge|le|in|notIn|notNull|null)\]= - High volume of public Content API requests from a single IP iterating through a hex alphabet (
0-9,a-f) on the same content-type endpoint with progressively-longer filter values - Subsequent
POST /admin/reset-passwordcalls using a reset token that the legitimate admin did not request - Successful admin password change immediately following a burst of public Content API requests with
where[updatedBy]query parameters - Sustained burst of identical-shape requests with only the trailing character of the filter value varying
Credit
Discovered by: James Doll - WildWest CyberSecurity Contact: cve+2026-27886@wildwestcyber.com Website: https://wildwestcyber.com LinkedIn: https://www.linkedin.com/in/james-doll-273a61243
NVD (es)
Strapi es un sistema de gestión de contenido ’headless’ de código abierto. Las versiones de Strapi a partir de la 4.0.0 y anteriores a la 5.37.0 no sanitizaban suficientemente los parámetros de consulta al filtrar contenido a través de campos relacionales. Un atacante no autenticado podría usar el parámetro de consulta ’where’ en cualquier tipo de contenido de acceso público con un campo ’updatedBy’ (u otra relación de administrador) para realizar un ataque de oráculo booleano contra campos privados en la tabla ’admin_users’ unida, incluyendo el campo ’resetPasswordToken’. La extracción de un token de restablecimiento de administrador a través de este oráculo hizo posible la toma de control total de la cuenta administrativa sin autenticación. Cuando se aplicaba un filtro como ’where[updatedBy][resetPasswordToken][$startsWith]=a’ a un endpoint de la API de Contenido público, la generación de consulta subyacente realizaba un ’LEFT JOIN’ contra la tabla ’admin_users’ y emitía una cláusula ’WHERE’ que hacía referencia a la columna unida. La capa de sanitización de parámetros de consulta no bloqueaba las cadenas de operadores que atravesaban esquemas de destino relacionales sobre los cuales el llamador no tenía permiso de lectura, permitiendo que el recuento de la respuesta se utilizara como un oráculo de un bit en cualquier campo de la tabla de administrador. El parche en la versión 5.37.0 introduce una sanitización explícita de parámetros de consulta en el límite del controlador y del servicio a través de tres nuevas primitivas: ’strictParam’, ’addQueryParams’ y ’addBodyParams’. Las cadenas de operadores que atraviesan objetivos relacionales restringidos ahora son rechazadas antes de llegar a la base de datos.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27886 changed 2026-05-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rjg2-95x7-8qmx changed 2026-05-16 | CC-BY-4.0 |
| NVD | CVE-2026-27886 changed 2026-11-11 | Public domain |