CVE-2026-61663: django CMS: Missing authorization in `render_object_structure` discloses non-PageContent placeholder structure to low-privileged staff
Summary
The django-cms frontend-editing structure endpoint
GET /<lang>/admin/cms/placeholder/object/<contenttypeid>/structure/<objectid>/
did not perform an object-level authorization check for non-PageContent objects. Any authenticated, active staff user could request the structure endpoint for a frontend-editable object (a model using PlaceholderRelationField) and read its placeholder/plugin structure, even without permission to change that object and without the cms.usestructure permission that the toolbar UI requires before offering structure mode.
PageContent objects were already protected (a page-view check added in GHSA/PR #8644); this advisory covers the remaining non-PageContent branch of the same view.
Severity
The issue is staff-gated and read-only, disclosing CMS structure metadata (placeholder slot names, plugin tree, plugin identifiers/labels, object existence) rather than write access or arbitrary field data.
Affected versions
- django-cms >= 4.0.0, <= 5.0.x and 5.1.0a1 (the vulnerable non-PageContent branch was introduced with the frontend-editing endpoints in 4.0)
Patched versions
- django-cms TODO: 5.0.9
Preconditions
- An authenticated, active staff account (isstaff=True). - The deployment exposes a non-PageContent model with django-cms placeholders / frontend editing (e.g. via PlaceholderRelationField). - The attacker can guess or enumerate the target contenttypeid and object id. - The attacker needs no model/object change permission and no cms.usestructure permission.
Impact
A low-privileged staff user can read the editorial placeholder/plugin structure of non-PageContent objects they are not authorized to edit through the toolbar. Depending on the installed plugins and templates this may reveal placeholder names, plugin layout, plugin identifiers and the existence of objects owned by other staff users or teams. This is most relevant for deployments using third-party or custom django-cms apps that expose frontend-editable objects outside the page tree.
Proof of concept
Using django-cms' own test model placeholderrelationfieldapp.FancyPoll (a non-PageContent model with a PlaceholderRelationField):
python target = FancyPoll.objects.create(name="private-fancy-poll") placeholder = rescanplaceholdersforobj(target)["content"] attacker = self.createuser("lowstaff", isstaff=True, issuperuser=False) attacker has neither changefancypoll nor cms.usestructure
with self.loginusercontext(attacker): response = self.client.get(getobjectstructureurl(target, language="en"))
Before fix: HTTP 200, body contains '"placeholderid": "<pk>"' After fix: HTTP 404, structure not disclosed
Patch
renderobjectstructure now authorizes the non-PageContent branch, mirroring Placeholder.haschangepermission at the object level (honouring a custom hasplaceholderchangepermission hook, otherwise falling back to the model/object change permission) and returning 404 when the user is not authorized:
python else: contenttypeobj = contenttype.getobjectforthistype(pk=objectid) if not canchangeplaceholderobject(request.user, contenttypeobj): raise Http404
Workarounds
No configuration workaround. Deployments that do not register any non-PageContent frontend-editable model are not affected. Otherwise, upgrade to a patched release.
Credit
Reported by doanmanhducz.
Other sources
django CMS is an easy-to-use and developer-friendly enterprise content management system powered by Django. Prior to 5.0.9, renderobjectstructure fails to authorize non-PageContent objects that use PlaceholderRelationField. An active staff user without cms.usestructure or model-level view or change permission can request the //admin/cms/placeholder/object/<contenttypeid>/structure/<objectid>/ endpoint with guessed contenttypeid and objectid values. The response discloses placeholder slot names, plugin trees, plugin identifiers, labels, and object existence for frontend-editable objects. The fix applies usercanviewplaceholdersource to the non-PageContent branch while keeping the structure board read-only for view-only users. This issue is fixed in versions 5.0.9.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/django-cmsto a version that resolves this vulnerability.Fixed in 5.0.9 - Upgrade
Upgrade
django-cmsto a version that resolves this vulnerability.Fixed in 5.0.9
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated active staff user can exploit it even if they lack cms.use_structure and do not have model-level view or change permission for the targeted object. The affected targets are non-PageContent frontend-editable objects that use PlaceholderRelationField.
What does an attacker need to send?
The attacker needs access to the admin endpoint and must guess valid content_type_id and object_id values for a target object. No user interaction is required.
What information can be exposed?
Responses can reveal whether a frontend-editable object exists, along with placeholder slot names, plugin trees, plugin identifiers, and labels. The issue does not provide integrity or availability impact according to the supplied severity vector.
Are view-only users still able to use the structure board after the fix?
Yes. The fix applies authorization to the non-PageContent handling while retaining read-only structure-board access for users with view-only permissions.
What version contains the fix?
Upgrade django CMS to version 5.0.9 or later. Versions prior to 5.0.9 are affected.