GHSA-8qj2-c6q4-f399: Medium severity pip/django-cms vulnerability

Published Aug 20, 2026
·
Updated

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.

Affected Software

1 affected componentFixes available
pip/django-cms<5.0.9
5.0.9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/django-cms to a version that resolves this vulnerability.

    Fixed in 5.0.9

Event History

Aug 20, 2026
Advisory Published
via GitHub·06:42 PM
Data Sourced
via GitHub·06:42 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed?

Deployments using django-cms versions 4.0.0 through 5.0.x, or 5.1.0a1, are affected when they have frontend-editable non-PageContent models that use PlaceholderRelationField.

2

What access does an attacker need?

An attacker must be an authenticated, active staff user. They can query the structure endpoint for a frontend-editable non-PageContent object even without permission to change that object or the cms.use_structure permission.

3

What information can be disclosed?

The endpoint can disclose object existence and CMS structure metadata, including placeholder slot names, plugin trees, and plugin identifiers or labels. The issue is read-only and does not provide write access or arbitrary field-data access.

4

Are PageContent objects affected?

No. PageContent objects already had a page-view authorization check; this issue affects the remaining non-PageContent branch.

5

What version contains the fix?

The provided advisory identifies django-cms 5.0.9 as the patched version.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203