CVE-2024-56143
JSON

8.2high

Strapi Allows Unauthorized Access to Private Fields via parms.lookup

Severity
8.2high CVSS:3.1 by GitHub_M
Exploit likelihood
0.42% (higher than 38% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-495j-h493-42q2

Description

Strapi is an open-source headless content management system. In versions from 5.0.0 to before 5.5.2, the lookup operator provided by the document service does not properly sanitize query parameters for private fields. An attacker can access private fields, including admin passwords and reset tokens, by crafting queries with the lookup parameter. This vulnerability is fixed in 5.5.2.

Affected

Product or packageVersionsReported by
strapi strapi>= 5.0.0, < 5.5.2, from 5.0.0 before 5.5.2CVE List, NVD
@strapi/core (npm)from 5.0.0 before 5.5.2GitHub Advisory Database

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

Classification

CWE-639

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

Strapi is an open-source headless content management system. In versions from 5.0.0 to before 5.5.2, the lookup operator provided by the document service does not properly sanitize query parameters for private fields. An attacker can access private fields, including admin passwords and reset tokens, by crafting queries with the lookup parameter. This vulnerability is fixed in 5.5.2.

GitHub Advisory Database
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.

NVD (es)

Strapi es un sistema de gestión de contenido sin cabeza de código abierto. En versiones desde la 5.0.0 hasta antes de la 5.5.2, el operador ’lookup’ proporcionado por el servicio de documentos no sanitiza correctamente los parámetros de consulta para campos privados. Un atacante puede acceder a campos privados, incluyendo contraseñas de administrador y tokens de restablecimiento, al elaborar consultas con el parámetro ’lookup’. Esta vulnerabilidad se corrige en la 5.5.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-56143 changed 2025-10-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-495j-h493-42q2 changed 2025-10-16CC-BY-4.0
NVDCVE-2024-56143 changed 2026-11-09Public domain