MEDIUMCVSS v3.1 6.5Vulnerability

CVE-2026-69138

## Summary The `discard` and `edit_redirect` version transitions did not enforce a per-object change-permission check, while the sibling transitions (`archive`, `publish`, `unpublish`, `revert`) all did. As a result a low-privileged staff user could **discard (delete) any draft version — and thereby the underlying content object — of content they have no change permission on**, and could create an editable draft off any published version, by supplying a version primary key they should not have access to (an insecure direct object reference). ## Details Version state transitions are guarded by `Conditions` objects declared on `djangocms_versioning.models.Version`. Every transition that mutates content carries the `user_can_change` condition, which delegates to the *content* object's own permission check (`Version.has_change_permission` → `content.has_change_permission` / `has_placeholder_change_permission`, with a final fallback to the Django `change_<model>` permission). Two conditions were missing that check: ```python # Before (vulnerable) check_discard = Conditions([ in_state([constants.DRAFT], not_draft_error), is_not_locked(lock_error_message), ]) check_edit_redirect = Conditions([ in_state([constants.DRAFT, constants.PUBLISHED], _("Version is not in draft or published state")), draft_is_not_locked(lock_draft_error_message), ]) ``` The corresponding admin views authorize **only** through these conditions: * `VersionAdmin.discard_view` / `VersionAdmin.edit_redirect_view` fetch the target with the stock `ModelAdmin.get_object`, which is backed by the **unfiltered** default queryset — no per-user or per-grouper scoping. * The views are registered with `admin_site.admin_view`, which enforces only `is_staff`. * `discard_view` deletes the version directly via `version.delete()` and never consults `VersionAdmin.has_delete_permission` (which otherwise delegates to the content admin and honors `ALLOW_DELETING_VERSIONS`). Because the only

Properties

Summary
djangocms-versioning: Authorization Bypass Through User-Controlled Key and Missing Authorization
Severity
medium
Nvd fetched at
2026-11-19T03:31:17.617109+00:00
Cvss score
6.5
Cvss severity
MEDIUM
Retrieved at
2026-11-19T03:32:39+00:00
Ghsa published
2026-11-18T21:19:04Z
Source url
https://github.com/advisories/GHSA-5g9x-qwh5-33x4
Ghsa updated
2026-11-18T21:19:06Z
Ghsa id
GHSA-5g9x-qwh5-33x4
Last source
GitHub Advisory Database
Score
6.5
Cvss version
3.1
Cve id
CVE-2026-69138
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
First seen by Signal
2026-11-18T23:15:15+00:00
Name
CVE-2026-69138
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
Published at
2026-11-18T21:18:01.227

Related Entities (4)

AFFECTS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-69138 (CVSS v3.1 6.5) — Ninja Signal Threat Intelligence | Ninja Signal