# CVE-2026-27886: Strapi may leak sensitive data via relational filtering due to lack of query sanitization

> CVE-2026-27886: Strapi may leak sensitive data via relational filtering due to lack of query sanitization. CVSS 7.5 (CVSS 3.1).

Canonical: https://rewindex.com/cve/CVE-2026-27886
Last updated: 2026-06-17T10:27:49Z

- Published: 2026-05-14 18:43 UTC · Updated: 2026-06-17 10:27 UTC · Assigner: GitHub\_M
- CVSS: 7.5 (CVSS 3.1) · Severity: High · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 1.9%, 80th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-200, CWE-22, CWE-943

## 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 vendors and products

- strapi: strapi

## Tracked companies

- [Strapi Cloud](https://rewindex.com/company/strapi-cloud.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-27886)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-27886)
- [https://github.com/strapi/strapi/security/advisories/GHSA-rjg2-95x7-8qmx](https://github.com/strapi/strapi/security/advisories/GHSA-rjg2-95x7-8qmx)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-27886 · Markdown: https://rewindex.com/cve/CVE-2026-27886.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-27886 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T03:12:55.467Z
