CVE-2026-63003: django CMS: Broken access control in page *Duplicate* allows reading the content of any page (cross-site / restriction bypass)

Published Aug 20, 2026
·
Updated

Impact

The only authorization gate on the duplicate flow is PageAdmin.hasaddpermission, which checks usercanaddpage(user, site) / usercanaddsubpage(...) — i.e. “may this user create a page at all”. Nothing checks the user’s relationship to the page being copied:

- cms/admin/forms.py — DuplicatePageForm.source = ModelChoiceField(queryset=Page.objects.all(), widget=HiddenInput()) spans every page in the database, on every site. - cms/admin/forms.py — AddPageForm.init returns early when the source widget is hidden, so the queryset is never narrowed to the user’s site/subtree. - cms/admin/forms.py — AddPageForm.clean() validates only URL uniqueness; source is never validated against the user. - cms/admin/pageadmin.py — duplicate() seeds source from the URL only on GET; on POST the value comes entirely from the request body. - cms/admin/forms.py — AddPageForm.save() → fromsource() performs source.copy(..., permissions=False) and copies every placeholder and all plugins of source into a new page on the attacker’s site. Because permissions=False drops the source’s view restrictions, the resulting copy is fully readable by the attacker.

This crosses a real privilege boundary: a staff user restricted (via CMSPERMISSION) to their own site or subtree can exfiltrate the content of restricted pages and of pages belonging to other tenants.

Read-back is trivial (verified): the copy is created on the attacker’s site and, because copy(..., permissions=False) strips the source’s view restrictions, the new page is unrestricted. usercanviewpage() then returns True for it (unrestricted + PUBLICFOR), so the attacker — or even an anonymous visitor — can read the duplicated content directly from the front end. No further permission on the new page is required.

Proof of concept

1. Log in as a staff user attacker who has add page permission but no view/change permission on a target (secret / other-site) page SECRETID. 2. Send (the URL <id> only needs to be a PageContent the attacker can already see — e.g. one of their own pages; the victim id goes in the POST body):

http POST /admin/cms/pagecontent/<MYOWNPAGECONTENTID>/duplicate/ HTTP/1.1 Cookie: sessionid=<attacker session> Content-Type: application/x-www-form-urlencoded

csrfmiddlewaretoken=...&title=x&slug=x&language=en&source=<SECRETID>

3. A new, unrestricted page is created under the attacker’s site containing a verbatim copy of the secret page’s plugins, which the attacker can now preview/edit/read.

Patches

Enforce an object-level permission check on source:

python class DuplicatePageForm(AddPageForm): source = forms.ModelChoiceField( queryset=Page.objects.all(), required=True, widget=forms.HiddenInput(), )

def cleansource(self): source = self.cleaneddata.get("source") if source and not usercanviewpage(self.user, source): raise ValidationError(("You do not have permission to copy this page.")) return source

(usercanviewpage is imported from cms.utils.pagepermissions.)

Workarounds

Until patched, restrict access to the cms.addpage permission to fully-trusted staff, or disable the duplicate action for delegated/limited editors.

References

- cms/admin/pageadmin.py — duplicate(), hasaddpermission(), geturls() - cms/admin/forms.py — DuplicatePageForm, AddPageForm.init/clean/save/fromsource - Regression tests: cms/tests/testforms.py::DuplicatePageFormSecurityTestCase

Other sources

django CMS is an easy-to-use and developer-friendly enterprise content management system powered by Django. Prior to 5.0.9, page duplication lacks an object-level authorization check on the source page. In cms/admin/forms.py, DuplicatePageForm.source accepts any Page, the AddPageForm constructor does not narrow a hidden source field, AddPageForm.clean does not validate the source against the user, and AddPageForm.save calls fromsource. In cms/admin/pageadmin.py, duplicate and PageAdmin.hasaddpermission check only whether a staff user may add a page. A crafted source value can therefore copy every placeholder and plugin from an unauthorized page with permissions=False, stripping source view restrictions and exposing content across sites or restricted subtrees when CMSPERMISSION is enabled. This issue is fixed in versions 5.0.9.

MITRE

Affected Software

2 affected componentsFixes available
django CMS django CMS<5.0.9
pip/django-cms<=5.0.8
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
  2. Upgrade

    Upgrade django CMS to a version that resolves this vulnerability.

    Fixed in 5.0.9
  3. Configuration

    Until patched (pre-5.0.9), restrict who can access page duplication by limiting the `cms.add_page` permission to fully-trusted staff (do not grant it to delegated/limited editors).

    django CMS admin (page duplication endpoint) cms.add_page permission access control = restrict to fully-trusted staff only
  4. Configuration

    In `cms/admin/forms.py`, enforce an object-level permission check for `DuplicatePageForm.source` so that `source` is validated against the current user (e.g., reject if `source` is not viewable by the user).

    django CMS DuplicatePageForm / AddPageForm DuplicatePageForm.source object-level authorization check = enforce `user_can_view_page` for the selected source page
  5. Configuration

    In `cms/admin/forms.py`, ensure the hidden `DuplicatePageForm.source` field’s queryset is narrowed to pages the user can view (avoid `Page.objects.all()`/unrestricted queryset for non-authorized users).

    django CMS admin page duplication flow source queryset restriction for DuplicatePageForm.source = narrow queryset to pages viewable by the user
  6. Configuration

    In `cms/admin/pageadmin.py`, update the `duplicate()` flow to deny duplication when the user lacks view permission for the provided source `PageContent`/page (i.e., perform an object-level check beyond `PageAdmin.has_add_permission`).

    django CMS Page duplication logic duplicate() authorization = add object-level authorization for the source page

Event History

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

Frequently Asked Questions

1

Who can exploit this issue?

A staff user who is permitted to add pages can exploit it. The attacker does not need permission to view the source page, because the duplication workflow did not enforce object-level authorization on that page.

2

Which deployments are exposed?

The described cross-site and restricted-subtree exposure occurs when CMS_PERMISSION is enabled. A vulnerable deployment must also allow the attacker to add pages; versions prior to 5.0.9 are affected.

3

What does successful exploitation expose?

An attacker can submit a crafted source page value to duplicate an unauthorized page. The resulting copy includes its placeholders and plugins with source view restrictions stripped, allowing the attacker to read the copied content.

4

What is the remediation?

Upgrade django CMS to version 5.0.9. The provided data does not identify a workaround for installations that cannot immediately upgrade.

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