ApostropheCMS Authorization Bypass Vulnerability in Piece-Type REST API

Vulnerability

An authorization bypass vulnerability has been identified in ApostropheCMS versions 4.28.0 and prior. The issue resides in the `getRestQuery` method of the `@apostrophecms/piece-type` module`. This vulnerability allows an unauthenticated attacker to bypass the `publicApiProjection` restrictions set by the administrator, leading to unauthorized disclosure of sensitive fields in publicly queryable documents. The vulnerability arises because the method processes user-supplied projection parameters before performing necessary permission checks, allowing attackers to manipulate the projection state and access restricted information.

Impact

Exploitation of this vulnerability allows unauthorized access to fields in publicly queryable documents that the administrator has restricted from the public API. This could include sensitive information such as internal notes, draft content, or metadata.

Reproduction

To reproduce this vulnerability, send a REST API request to a piece-type endpoint (e.g., `article`) with a `project` query parameter that includes fields restricted by the `publicApiProjection`. The `getRestQuery` method will process the request, skipping the projection enforcement and exposing the restricted fields in the response.

Remediation

Users can upgrade to ApostropheCMS version 4.29.0, where this vulnerability has been fixed.

Added: Apr 15, 2026, 10:29 PM
Updated: Apr 15, 2026, 10:29 PM

Vulnerability Rating

Custom Algorithm
spread
3.4
impact
2.5
exploitability
9.7
remediation
7.7
relevance
6.0
threat
6.4
urgency
2.9
incentive
8.3

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.