ApostropheCMS: publicApiProjection Bypass via `project` Query Builder in Piece-Type REST API (apostrophecms apostrophe)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.51 % Β· percentile 44 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
Description
ApostropheCMS is an open-source Node.js content management system. Versions 4.28.0 and prior contain an authorization bypass vulnerability in the getRestQuery method of the @apostrophecms/piece-type module, where the method checks whether a MongoDB projection has already been set before applying the admin-configured publicApiProjection. An unauthenticated attacker can supply a project query parameter in the REST API request, which is processed by applyBuildersSafely before the permission check, pre-populating the projection state and causing the publicApiProjection to be skipped entirely. This allows disclosure of any field on publicly queryable documents that the administrator explicitly restricted from the public API, such as internal notes, draft content, or metadata. Exploitation is trivial, requiring only appending query parameters to a public URL with no authentication. This issue has been fixed in version 4.29.0.
Weaknesses (CWE)
- CWE-863 β Incorrect Authorization
- CWE-200 β Exposure of Sensitive Information to an Unauthorized Actor
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-xhq9-58fw-859p β ApostropheCMS: publicApiProjection Bypass via project Query Builder in Piece-Type REST API
European references
- ENISA EUVD Β· EUVD-2026-23102
- GCVE Β· GCVE-0-2026-33888
Affected configurations (NVD CPE)
cpe:2.3:a:apostrophecms:apostrophecms:*:*:*:*:*:*:*:*< 4.29.0
Affected products
| Product | Versions |
|---|---|
| apostrophecms Β· apostrophe | affected < 4.29.0 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |