GHSA-495j-h493-42q2

Suggest an improvement
Source
https://github.com/advisories/GHSA-495j-h493-42q2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-495j-h493-42q2/GHSA-495j-h493-42q2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-495j-h493-42q2
Aliases
Published
2025-10-16T18:22:40Z
Modified
2025-10-16T20:42:12Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N CVSS Calculator
Summary
Strapi Allows Unauthorized Access to Private Fields via parms.lookup
Details

Summary

It's possible to access any private fields by filtering through the lookup parameters

Details

Using the new lookup operator provided by the document service in Strapi 5, it is not properly sanitizing this query operator for private fields.

PoC

  1. Create a strapi app.
  2. Create a content-type
  3. In the content-type you make a new entry
  4. Go back to the list view
  5. Add &lookup[updatedBy][password][$startsWith]=$2 to the end of your url (All passwords start with $2) see that all entries are still there
  6. Add &lookup[updatedBy][password][$startsWith]=$3 see the entry disappear proving that the search above works

Impact

An attacker can perform filtering attacks on everything related to the object, including admin passwords and reset-tokens. This means that they can gain full access to the strapi instance.

Database specific
{
    "cwe_ids":  [
        "CWE-639"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2025-10-16T18:22:40Z",
    "nvd_published_at":  "2025-10-16T16:15:36Z",
    "severity":  "HIGH"
}
References

Affected packages

npm / @strapi/core

Package

Name
@strapi/core
View open source insights on deps.dev
Purl
pkg:npm/%40strapi/core

Affected ranges

Type
SEMVER
Events
Introduced
5.0.0
Fixed
5.5.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/10/GHSA-495j-h493-42q2/GHSA-495j-h493-42q2.json"