Vulnerabilities in pkg:pypi/djangocms-moderation

PACKAGE
Advisory Identifier: GHSA-pj7p-238h-76pv
Advisory Summary

CVE-2026-69139 is a MODERATE (CVSS 4.3) moderation comments disclosed to non-participant vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting djangocms-moderation libraries in the PyPI ecosystem. The issue involves moderation comments disclosed to non-participant staff via the admin changelist. Remediation is available by upgrading affected packages to version 2.4.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/djangocms-moderation

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/djangocms-moderation. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-pj7p-238h-76pv CVE-2026-69139 MODERATE djangocms-moderation: Moderation comments disclosed to non-participant staff via the admin changelist

CVE-2026-69139 at a Glance

CVE Identifier CVE-2026-69139
GHSA Identifier GHSA-pj7p-238h-76pv
Severity MODERATE
CVSS v3.1 Base Score 4.3
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product djangocms-moderation
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 4.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2026-69139

To remediate this vulnerability, upgrade all affected djangocms-moderation dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

djangocms-moderation fixed: 2.4.0
pip install djangocms-moderation>=2.4.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show djangocms-moderation

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-69139, inspect your installed packages using pip:

pip show djangocms-moderation

Analyze the terminal output to locate any version of djangocms-moderation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.0), your application is affected.

Note: The pip show djangocms-moderation command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. In djangocms-moderation, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## Summary The Django admin views for moderation comments (`CollectionCommentAdmin` and `RequestCommentAdmin`) render the full comment body but scope access only by an attacker-controlled `id` in the URL and Django's model-level `view_*comment` permission. They perform no per-object participant check. As a result, any authenticated staff user who holds the comment *view* permission can read the comments of **any** collection or moderation request — including ones they are not a participant of — simply by supplying the target object's id. Comments are documented and intended to be private to the participants of a collection (its author and the moderators assigned to its workflow). This advisory concerns a read/write authorization asymmetry: the write paths already enforced `request.user == obj.author`, but the read paths did not enforce any participant check. ## Details `ModerationRequest.user_can_view_comments()` — the gate intended to protect comment reads (author **or** assigned moderator) — existed in the codebase but was never called by the comment admins. Neither `CollectionCommentAdmin` nor `RequestCommentAdmin` overrode `get_queryset`, and their `changelist_view` / `changeform_view` methods resolved the target object directly from the user-supplied id without an authorization check. The changelists are hard-scoped to a single collection / moderation request (they `raise Http404` when no id is present), so the exposure is not "all comments at once," but any specific collection's or request's comments can be retrieved by iterating ids. - `list_display` on both admins includes the comment `message`, so the full body is disclosed directly in the changelist HTML. - The individual changeform (`.../<id>/change/`) discloses the same content via a direct URL. ## Impact - **Type:** Information disclosure / broken object-level authorization (IDOR). - **Confidentiality:** Comment contents of collections/requests the user does not participate in are exposed. This can include sensitive internal editorial discussion. - **Integrity / Availability:** No impact — comment creation, editing, and deletion already enforced author checks and are unaffected. - **Who is affected:** Deployments where more than one team/group of staff reviewers holds the `view_collectioncomment` / `view_requestcomment` permission. A reviewer of collection A can read the comments of collection B. ## Workarounds Restrict the `view_collectioncomment` and `view_requestcomment` model permissions to trusted users only, and avoid granting them across teams that must not see each other's moderation comments. This does not fully close the issue but reduces the set of users who can exploit it. Upgrading is the only complete fix. ## Remediation Upgrade to djangocms-moderation 2.4.1. The fix adds a `user_can_view_comments` participant gate (author or assigned moderator) to both comment admins, enforced in `changelist_view` and `changeform_view` for both the collection and request comment models. A `ModerationCollection.user_can_view_comments()` method was added to mirror the existing `ModerationRequest.user_can_view_comments()`. Non-participants now receive an HTTP 403 (`PermissionDenied`). ## Credit Reported via coordinated disclosure.

CVE-2026-69139 Affected djangocms-moderation Versions

1 component(s)
Fixed Versions:
2.4.0
Product / Package Ecosystem Affected Versions Fixed Version
djangocms-moderation
PyPI
< 2.4.0
2.4.0

References

Frequently Asked Questions

What is CVE-2026-69139?
CVE-2026-69139 is a security vulnerability in djangocms-moderation involving Moderation comments disclosed to non-participant staff via the admin changelist under CWE-639: Authorization Bypass Through User-Controlled Key.
Which djangocms-moderation versions are affected?
Affected versions include releases prior to 2.4.0 across affected packages: djangocms-moderation.
What version fixes CVE-2026-69139?
Upgrading to 2.4.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is djangocms-moderation affected?
Yes, djangocms-moderation is affected in releases prior to 2.4.0. Upgrade your dependency to 2.4.0 or later.
What is the CVSS score of CVE-2026-69139?
CVE-2026-69139 has a CVSS v3.1 base score of 4.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-69139?
CVE-2026-69139 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check PyPI dependencies for CVE-2026-69139?
Run the dependency tree command: 'pip show djangocms-moderation'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pj7p-238h-76pv",
  "modified" : "2026-11-19T16:09:30Z",
  "published" : "2026-11-19T16:09:30Z",
  "aliases" : [ "CVE-2026-69139" ],
  "summary" : "djangocms-moderation: Moderation comments disclosed to non-participant staff via the admin changelist",
  "details" : "## Summary\n\nThe Django admin views for moderation comments (`CollectionCommentAdmin` and `RequestCommentAdmin`) render the full comment body but scope access only by an attacker-controlled `id` in the URL and Django's model-level `view_*comment` permission. They perform no per-object participant check. As a result, any authenticated staff user who holds the comment *view* permission can read the comments of **any** collection or moderation request — including ones they are not a participant of — simply by supplying the target object's id.\n\nComments are documented and intended to be private to the participants of a collection (its author and the moderators assigned to its workflow). This advisory concerns a read/write authorization asymmetry: the write paths already enforced `request.user == obj.author`, but the read paths did not enforce any participant check.\n\n## Details\n\n`ModerationRequest.user_can_view_comments()` — the gate intended to protect comment reads (author **or** assigned moderator) — existed in the codebase but was never called by the comment admins. Neither `CollectionCommentAdmin` nor `RequestCommentAdmin` overrode `get_queryset`, and their `changelist_view` / `changeform_view` methods resolved the target object directly from the user-supplied id without an authorization check.\n\nThe changelists are hard-scoped to a single collection / moderation request (they `raise Http404` when no id is present), so the exposure is not \"all comments at once,\" but any specific collection's or request's comments can be retrieved by iterating ids.\n\n- `list_display` on both admins includes the comment `message`, so the full   body is disclosed directly in the changelist HTML.\n- The individual changeform (`.../<id>/change/`) discloses the same content   via a direct URL.\n\n## Impact\n\n- **Type:** Information disclosure / broken object-level authorization (IDOR).\n- **Confidentiality:** Comment contents of collections/requests the user does   not participate in are exposed. This can include sensitive internal editorial   discussion.\n- **Integrity / Availability:** No impact — comment creation, editing, and   deletion already enforced author checks and are unaffected.\n- **Who is affected:** Deployments where more than one team/group of staff   reviewers holds the `view_collectioncomment` / `view_requestcomment`   permission. A reviewer of collection A can read the comments of collection B.\n\n## Workarounds\n\nRestrict the `view_collectioncomment` and `view_requestcomment` model permissions to trusted users only, and avoid granting them across teams that must not see each other's moderation comments. This does not fully close the issue but reduces the set of users who can exploit it. Upgrading is the only complete fix.\n\n## Remediation\n\nUpgrade to djangocms-moderation 2.4.1.\n\nThe fix adds a `user_can_view_comments` participant gate (author or assigned moderator) to both comment admins, enforced in `changelist_view` and `changeform_view` for both the collection and request comment models. A `ModerationCollection.user_can_view_comments()` method was added to mirror the existing `ModerationRequest.user_can_view_comments()`. Non-participants now receive an HTTP 403 (`PermissionDenied`).\n\n## Credit\n\nReported via coordinated disclosure.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "djangocms-moderation"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.3.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/django-cms/djangocms-moderation/security/advisories/GHSA-pj7p-238h-76pv"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-69139"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django-cms/djangocms-moderation/pull/374"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django-cms/djangocms-moderation/commit/a044d9c98c127454b73e8a8ada6e59aaa0a8f621"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/django-cms/djangocms-moderation"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/django-cms/djangocms-moderation/releases/tag/2.4.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200", "CWE-639", "CWE-862" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T16:09:30Z",
    "nvd_published_at" : "2026-11-18T22:17:23Z"
  }
}