Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessStore XSS payload in plugin field or page title
-
DeliveryCause plugin rendering exception on affected placeholder
-
ExploitVictim staff member opens affected page in edit mode
-
Executionrender_exception builds unescaped heading via mark_safe
-
ImpactPayload executes in victim's browser session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires three concurrent conditions: (1) The attacker holds at least low-privileged CMS editor access (PR:L per CVSS) sufficient to store a malicious payload in a plugin field contributing to get_short_description(), in an exception message context, or in a placeholder source string such as a page content title editable by that role. (2) A plugin rendering exception must be triggered during edit-mode rendering of the affected placeholder - this is not a default state and requires either a misconfigured plugin or a plugin the attacker can cause to raise an exception. (3) A second authenticated staff user (UI:R per CVSS) must load the affected page in CMS edit mode, activating the render_exception code path and causing the unescaped heading to render in their browser. The vulnerability is explicitly NOT mitigated by settings.DEBUG=False - the custom heading renders regardless of debug state. Exploitation is confined entirely to the CMS editing interface and has no impact on front-end visitors. |
| Impact | The CVSS 3.1 score of 4.4 (Medium) accurately reflects the constrained attack surface: AC:H captures the requirement that a plugin rendering exception must be triggered in edit mode - not a default state - while PR:L and UI:R together require both the attacker and a victim to hold authenticated staff sessions. The S:C (Scope Changed) metric is the most meaningful risk amplifier, as successful exploitation shifts impact to the victim's browser session, potentially enabling session hijacking or privilege escalation within the CMS admin interface. No EPSS score was provided in the input data, and the absence from CISA KEV indicates no empirical evidence of exploitation at scale; the dual-authentication requirement and exception-trigger dependency make opportunistic mass exploitation unlikely. The real-world priority is highest in multi-tenant editorial environments or organizations where not all CMS staff accounts are equally trusted - insider threat or compromised low-privileged editor accounts represent the realistic threat model here. This should not be dismissed solely on the basis of the medium CVSS score in such environments, but it is a low-urgency finding for single-team deployments with fully trusted staff. |
| Exploit ScenarioDerived | An attacker with low-privileged CMS editor access stores an XSS payload such as '<img src=x onerror=alert(document.cookie)>' in a plugin field that populates get_short_description() or in a page title used as a placeholder source string. When a plugin rendering exception is subsequently triggered on a page containing that data, a second authenticated staff user visiting the affected placeholder in edit mode will have the payload execute in their browser, potentially exposing their session token or enabling further actions under their identity. No public proof-of-concept code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 20, 2026
Stored XSS in django CMS 5.0.8 allows an authenticated editor to execute arbitrary HTML in other staff users' browsers via the edit-mode plugin exception rendering path. When plugin rendering fails in edit mode, ContentRenderer.render_exception in cms/plugin_rendering.py interpolates attacker-controlled values - including get_short_description() output, exception messages, and placeholder source strings - into an HTML heading using an unsafe f-string, then returns the result through mark_safe, bypassing Django's autoescaping. No public exploit has been identified at time of analysis, and this vulnerability is not listed in CISA KEV.
RemediationAI
Upgrade django CMS to version 5.0.9, confirmed fixed per the GitHub release at https://github.com/django-cms/django-cms/releases/tag/5.0.9 and applied in commit b56a568844ff3702495945f73a31d0868285bf88 via pull request https://github.com/django-cms/django-cms/pull/8711. The fix replaces the unsafe f-string with format_html() in cms/plugin_rendering.py, HTML-escaping all user-controlled values before they are returned as safe markup. Until patching is feasible, the vendor recommends restricting edit-mode access to fully trusted staff only, specifically preventing untrusted editors from managing plugin fields that contribute to get_short_description() - note this workaround does not fully eliminate exposure, since placeholder source strings (such as page content titles) and exception messages may still carry attacker-influenced content independently of plugin field controls.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw resides in ContentRenderer.render_exception within cms/plugin_rendering.py of django CMS (CPE: cpe:2.3:a:django-cms:django-cms:*:*:*:*:*:*:*:*, version 5.0.8). Django's mark_safe() function instructs the template engine to treat a string as pre-escaped HTML, suppressing further autoescaping. The vulnerable code assembled the exception heading using a Python f-string, embedding unescaped user-controlled values before calling mark_safe. CWE-79 (Improper Neutralization of Input During Web Page Generation) is the root cause: plugin fields contributing to get_short_description(), page content titles feeding placeholder.source, and exception messages all represent stored, attacker-influenced data that were never HTML-escaped before being marked safe. The fix introduced in 5.0.9 via commit b56a568844ff3702495945f73a31d0868285bf88 replaces the f-string with Django's format_html(), which escapes substitution arguments before interpolation. The settings.DEBUG flag does not affect exploitability - it only controls whether Django's traceback HTML is appended; the custom unescaped heading is rendered in edit mode regardless.
Know when Django Cms gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
AV:N for web-accessible CMS; AC:H for exception-trigger requirement; PR:L for editor role; UI:R for victim interaction; S:C for browser scope change; C:L/I:L for session theft and DOM manipulation; A:N as no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
django CMS is an easy-to-use and developer-friendly enterprise content management system powered by Django. From 5.0.8 until 5.0.9, ContentRenderer.render_placeholder in cms/plugin_rendering.py can pass stored, attacker-controlled values to ContentRenderer.render_exception when plugin rendering fails in edit mode. Values from get_short_description(), the exception message, the placeholder, or placeholder.source are interpolated into a cms-rendering-exception heading and later returned through mark_safe. Because the heading is not escaped, stored HTML executes in an editor’s browser, and settings.DEBUG does not prevent the custom heading from rendering. The fix uses format_html to escape the message before safe placeholder output is returned. This issue is fixed in versions 5.0.9.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Django Cms
View allMissing object-level authorization in djangocms-versioning before 2.6.1 allows an authenticated staff user on a django C
Content exfiltration in django CMS prior to 5.0.9 allows any authenticated staff user holding only page-add permission t
Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') vulnerability in django CMS
Cross-site request forgery (CSRF) vulnerability in django CMS before 3.0.14, 3.1.x before 3.1.1 allows remote attackers
Missing object-level authorization in django CMS's `render_object_structure` endpoint exposes CMS structure metadata of
Unauthorized page-content disclosure in django CMS prior to 5.0.8 allows any staff account to retrieve the plugin struct
Unauthorized content disclosure in django CMS prior to 5.0.8 allows authenticated staff users to exfiltrate plugin conte
Authenticated Django admin staff holding the model-level view_collectioncomment or view_requestcomment permission can re
EUVD-2026-63571
GHSA-hvq6-2r72-p2x7
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB