CVE-2026-69138: djangocms-versioning: Authorization Bypass Through User-Controlled Key and Missing Authorization
djangocms-versioning is a general-purpose versioning package for django CMS 4 and later. Prior to 2.6.1, the checkdiscard and checkeditredirect Conditions on djangocmsversioning.models.Version omit usercanchange, while VersionAdmin.discardview and VersionAdmin.editredirectview obtain a version by its primary key and rely on those conditions for object-level authorization. With CMSPERMISSION set to True, the affected views are gated only by isstaff, allowing any staff user to select content without object-level change permission. With the default CMSPERMISSION value of False, a staff user must also hold the global Django change permission, but that model-level permission does not enforce the intended per-object authorization, so the user can delete a draft version and its content object through discard or create an editable draft from a published version through editredirect even when the user cannot change that specific content object. This issue is fixed in version 2.6.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
djangocms-versioningto a version that resolves this vulnerability.Fixed in 2.6.1