{"id":"CVE-2026-63003","aliases":["CVE-2026-63003","GHSA-6x92-6vx4-5fwr","PYSEC-2026-3821"],"related":[],"kind":"vulnerability","state":"published","title":"django CMS: Broken access control in page *Duplicate* allows reading the content of any page (cross-site / restriction bypass)","summary":"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 from_source. In cms/admin/pageadmin.py, duplicate and PageAdmin.has_add_permission 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 CMS_PERMISSION is enabled. This issue is fixed in versions 5.0.9.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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 from_source. In cms/admin/pageadmin.py, duplicate and PageAdmin.has_add_permission 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 CMS_PERMISSION is enabled. This issue is fixed in versions 5.0.9.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nThe only authorization gate on the duplicate flow is `PageAdmin.has_add_permission`,\nwhich checks `user_can_add_page(user, site)` / `user_can_add_subpage(...)` — i.e. *“may\nthis user create a page at all”*. Nothing checks the user’s relationship to the page being\ncopied:\n\n- `cms/admin/forms.py` — `DuplicatePageForm.source = ModelChoiceField(queryset=Page.objects.all(), widget=HiddenInput())`\n  spans **every page in the database, on every site**.\n- `cms/admin/forms.py` — `AddPageForm.__init__` returns early when the `source` widget is\n  hidden, so the queryset is **never narrowed** to the user’s site/subtree.\n- `cms/admin/forms.py` — `AddPageForm.clean()` validates only URL uniqueness; `source` is\n  never validated against the user.\n- `cms/admin/pageadmin.py` — `duplicate()` seeds `source` from the URL **only on GET**; on\n  POST the value comes entirely from the request body.\n- `cms/admin/forms.py` — `AddPageForm.save()` → `from_source()` performs\n  `source.copy(..., permissions=False)` and copies **every placeholder and all plugins** of\n  `source` into a new page on the attacker’s site. Because `permissions=False` drops the\n  source’s view restrictions, the resulting copy is fully readable by the attacker.\n\nThis crosses a real privilege boundary: a staff user restricted (via `CMS_PERMISSION`) to\ntheir own site or subtree can exfiltrate the content of restricted pages and of pages\nbelonging to other tenants.\n\n**Read-back is trivial (verified):** the copy is created on the attacker’s site and, because\n`copy(..., permissions=False)` strips the source’s view restrictions, the new page is\n*unrestricted*. `user_can_view_page()` then returns `True` for it (unrestricted +\n`PUBLIC_FOR`), so the attacker — or even an anonymous visitor — can read the duplicated\ncontent directly from the front end. No further permission on the new page is required.\n\n## Proof of concept\n\n1. Log in as a staff user `attacker` who has *add page* permission but **no** view/change\n   permission on a target (secret / other-site) page `SECRET_ID`.\n2. Send (the URL `<id>` only needs to be a `PageContent` the attacker can already see —\n   e.g. one of their own pages; the victim id goes in the POST body):\n\n```http\nPOST /admin/cms/pagecontent/<MY_OWN_PAGECONTENT_ID>/duplicate/ HTTP/1.1\nCookie: sessionid=<attacker session>\nContent-Type: application/x-www-form-urlencoded\n\ncsrfmiddlewaretoken=...&title=x&slug=x&language=en&source=<SECRET_ID>\n```\n\n3. A new, unrestricted page is created under the attacker’s site containing a verbatim\n   copy of the secret page’s plugins, which the attacker can now preview/edit/read.\n\n## Patches \n\nEnforce an object-level permission check on `source`:\n\n```python\nclass DuplicatePageForm(AddPageForm):\n    source = forms.ModelChoiceField(\n        queryset=Page.objects.all(),\n        required=True,\n        widget=forms.HiddenInput(),\n    )\n\n    def clean_source(self):\n        source = self.cleaned_data.get(\"source\")\n        if source and not user_can_view_page(self._user, source):\n            raise ValidationError(_(\"You do not have permission to copy this page.\"))\n        return source\n```\n\n(`user_can_view_page` is imported from `cms.utils.page_permissions`.)\n\n## Workarounds\n\nUntil patched, restrict access to the `cms.add_page` permission to fully-trusted staff, or\ndisable the duplicate action for delegated/limited editors.\n\n## References\n\n- `cms/admin/pageadmin.py` — `duplicate()`, `has_add_permission()`, `get_urls()`\n- `cms/admin/forms.py` — `DuplicatePageForm`, `AddPageForm.__init__/clean/save/from_source`\n- Regression tests: `cms/tests/test_forms.py::DuplicatePageFormSecurityTestCase`","format":"markdown","source":"ghsa"},{"lang":"es","text":"django CMS es un sistema de gestión de contenido empresarial fácil de usar y amigable para desarrolladores, impulsado por Django. Antes de la versión 5.0.9, la duplicación de páginas carece de una verificación de autorización a nivel de objeto en la página de origen. En cms/admin/forms.py, DuplicatePageForm.source acepta cualquier Página, el constructor de AddPageForm no restringe un campo de origen oculto, AddPageForm.clean no valida el origen contra el usuario, y AddPageForm.save llama a from_source. En cms/admin/pageadmin.py, duplicate y PageAdmin.has_add_permission verifican solo si un usuario del personal puede añadir una página. Un valor de origen manipulado puede, por lo tanto, copiar cada marcador de posición y plugin de una página no autorizada con permissions=False, eliminando las restricciones de vista de origen y exponiendo contenido a través de sitios o subárboles restringidos cuando CMS_PERMISSION está habilitado. Este problema está solucionado en las versiones 5.0.9.","source":"nvd"}],"published":"2026-08-20T18:09:13.988Z","modified":"2026-10-26T10:10:00.140Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-639","CWE-862"],"affected":[{"ranges":[{"version":"< 5.0.9","status":"affected"}],"vendor":"django-cms","product":"django-cms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.0.9"}],"ecosystem":"PyPI","package":"django-cms","purl":"pkg:pypi/django-cms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.0.9"}],"ecosystem":"PyPI","package":"django-cms","purl":"pkg:pypi/django-cms","source":"pysec"}],"references":[{"url":"https://github.com/django-cms/django-cms/security/advisories/GHSA-6x92-6vx4-5fwr","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/django-cms/django-cms/pull/8713","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/django-cms/django-cms/commit/3e1ccf7573eb1a74ebbbfaaa812c1f5cadf14e6c","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/django-cms/django-cms/releases/tag/5.0.9","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/django-cms/django-cms","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/django-cms","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-6x92-6vx4-5fwr","tags":["advisory"],"sources":["pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63003","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-21T20:58:41.902Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63003","url":"https://www.cve.org/CVERecord?id=CVE-2026-63003","licence":"CVE Terms of Use","modified":"2026-08-21T21:46:19.864Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6x92-6vx4-5fwr","url":"https://github.com/advisories/GHSA-6x92-6vx4-5fwr","licence":"CC-BY-4.0","modified":"2026-09-10T12:25:36.931Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63003","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63003","licence":"Public domain","modified":"2026-10-26T10:10:00.140Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-3821","url":"https://osv.dev/vulnerability/PYSEC-2026-3821","licence":"CC-BY-4.0","modified":"2026-09-10T12:15:03.041Z"}],"updatedAt":"2026-11-25T22:59:34.693Z","epss":{"score":0.00239,"percentile":0.16011,"date":"2026-12-01T12:00:22.000Z"}}