CVE-2026-27886: @strapi/strapi Strapi May Leak Sensitive Data Vulnerability
CRITICALCVE-2026-27886 is a CRITICAL strapi may leak sensitive data vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting @strapi/strapi libraries in the npm ecosystem. The issue involves strapi may leak sensitive data via relational filtering due to lack of query sanitization. Remediation is available by upgrading affected packages to version 5.37.0.
CVE-2026-27886 at a Glance
How to Fix CVE-2026-27886
To remediate this vulnerability, upgrade all affected @strapi/strapi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @strapi/strapi@5.37.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @strapi/strapi
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-27886, inspect your project dependencies using npm:
npm ls @strapi/strapi
Analyze the terminal output to locate any version of @strapi/strapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.37.0), your application is affected.
Note: The npm ls @strapi/strapi command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In @strapi/strapi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-27886 Affected @strapi/strapi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@strapi/strapi
|
npm |
≥ 4.0.0
< 5.37.0
|
5.37.0
|
References
Frequently Asked Questions
What is CVE-2026-27886?
Which @strapi/strapi versions are affected?
What version fixes CVE-2026-27886?
Is @strapi/strapi affected?
What CWE is associated with CVE-2026-27886?
How can I check npm dependencies for CVE-2026-27886?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-rjg2-95x7-8qmx",
"modified" : "2026-05-15T23:44:50Z",
"published" : "2026-05-14T13:17:58Z",
"aliases" : [ "CVE-2026-27886" ],
"summary" : "Strapi may leak sensitive data via relational filtering due to lack of query sanitization",
"details" : "### Summary of CVE-2026-27886 Vulnerability Details\n\n- CVE: CVE-2026-27886\n- 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)\n- Affected Versions: `@strapi/strapi` <=5.36.1\n- How to Patch: Immediately update your Strapi to >=5.37.0\n\n### Description of CVE-2026-27886\n\nStrapi 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.\n\nWhen 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.\n\nThe 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.\n\n### IoC's for CVE-2026-27886\n\nIndicators that an instance running an unpatched version may have been exploited:\n\n- 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)\\]=`\n- 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\n- Subsequent `POST /admin/reset-password` calls using a reset token that the legitimate admin did not request\n- Successful admin password change immediately following a burst of public Content API requests with `where[updatedBy]` query parameters\n- Sustained burst of identical-shape requests with only the trailing character of the filter value varying\n\n### Credit\nDiscovered by: James Doll - WildWest CyberSecurity\nContact: cve+2026-27886@wildwestcyber.com\nWebsite: https://wildwestcyber.com\nLinkedIn: https://www.linkedin.com/in/james-doll-273a61243",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@strapi/strapi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "5.37.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/strapi/strapi/security/advisories/GHSA-rjg2-95x7-8qmx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-27886"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/strapi/strapi"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-22", "CWE-943" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-14T13:17:58Z",
"nvd_published_at" : "2026-05-14T19:16:31Z"
}
}