Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise Decidim admin account with landing-page editing rights
-
DeliveryAccess HTML content block editor in admin interface
-
ExploitInject malicious JavaScript payload and save
-
ExecutionVictim visitor loads affected public page
-
PersistBrowser executes stored script
-
ImpactExfiltrate session tokens or perform victim-context actions
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Decidim administrator account that has been explicitly granted landing-page editing rights for the target scope (homepage or static page content blocks). This is a non-default delegation that an organization must configure; not all admins automatically have this capability. Beyond admin access, a victim visitor must load the affected public page for the injected script to execute (UI:R per CVSS). What limits exploitation: (1) the attacker must already possess elevated admin credentials (PR:H), ruling out external unauthenticated attackers; (2) only admins with specific landing-page editing scope - not all admins - can reach the vulnerable HTML block input; (3) the S:C scope change means the impact is confined to visitor browsers, not the Decidim server itself. |
| Impact | The vendor-assigned CVSS 3.1 score of 4.8 (Medium) correctly reflects the two key constraints: PR:H (high privileges required - the attacker must already hold admin-level landing-page editing rights) and UI:R (a victim visitor must load the affected page). These conditions materially lower real-world risk compared to unauthenticated or low-privilege stored XSS. No EPSS score was supplied, so exploitation probability cannot be quantified numerically. The vulnerability is not listed in CISA KEV and no public proof-of-concept has been identified at time of analysis. The input tags include 'RCE,' which is misleading - this is browser-side JavaScript execution (XSS), not server-side remote code execution; treating it as a server-compromise risk would overstate the threat. For Decidim deployments that delegate landing-page editing to multiple or partially trusted admins, risk is moderate because a malicious insider or compromised admin account could silently inject credential-harvesting payloads into public-facing pages. For deployments where only a small set of fully trusted staff hold admin rights, practical risk is substantially lower than even the CVSS Medium rating suggests. |
| Exploit ScenarioDerived | A malicious or compromised Decidim admin with landing-page editing rights accesses an HTML content block on the organization's public homepage, embeds a JavaScript payload designed to exfiltrate visitor session cookies to an attacker-controlled endpoint, and saves the change. Every visitor who subsequently loads that public page executes the script silently in their browser, exposing their session or allowing the attacker to perform authenticated actions on their behalf. No public exploit code has been identified, but the technique requires only basic HTML and JavaScript knowledge once admin credentials are available. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 13, 2026
Stored XSS in Decidim's HTML content blocks allows any administrator with landing-page editing rights to persist arbitrary JavaScript that executes in every visitor's browser. The vulnerability affects the decidim-core RubyGem across three release branches (below 0.30.9, 0.31.5, and 0.32.0) and was confirmed through a professional security audit by Radically Open Security. No public exploit code or CISA KEV listing exists; vendor-released patches are available and the fix has been merged upstream.
RemediationAI
Upgrade decidim-core to the first non-vulnerable release for your branch: version 0.30.9 for 0.30.x deployments, version 0.31.5 for 0.31.x deployments, or version 0.32.0 for 0.32.x deployments. The upstream fix is confirmed merged in pull request https://github.com/decidim/decidim/pull/16451. If an immediate gem upgrade is not feasible, the vendor-documented compensating control is to restrict HTML content-block editing permissions exclusively to fully trusted administrators, eliminating the opportunity for a malicious or compromised account to inject content; the trade-off is reduced delegation flexibility in multi-admin environments. There is no technical workaround that neutralizes the vulnerability without either upgrading or removing landing-page editing access from non-essential accounts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in rubygems, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Decidim is a Ruby on Rails participatory-democracy platform distributed as the decidim-core RubyGem (pkg:rubygems/decidim-core). The flaw resides in multiple content-block cell classes - primarily Decidim::ContentBlocks::HtmlCell but also StaticPage::SectionCell, SummaryCell, and TwoPaneSectionCell - which call .html_safe on admin-supplied HTML retrieved via translated_attribute(model.settings.html_content), bypassing Rails' default output escaping entirely and delivering raw markup to the view renderer. The root cause is classified as CWE-94 (Code Injection) because attacker-controlled content is executed as code rather than treated as data; the practical manifestation is a stored (persistent) cross-site scripting sink. The PR #16451 fix replaces every unsafe .html_safe call with decidim_sanitize_editor_admin(), applying an allowlist-based HTML sanitizer appropriate for admin-authored rich text, across html_cell.rb, section_cell.rb, summary_cell.rb, and two_pane_section_cell.rb.
Know when the next one hits your stack
- 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:L/PR:H/UI:R/S:C/C:L/I:L/A:N
PR:H reflects mandatory admin-level landing-page editing rights; S:C applies because the injected script executes in visitor browser contexts outside the server trust boundary.
Primary rating from Vendor (https://github.com/decidim/decidim).
CVSS VectorVendor: https://github.com/decidim/decidim
DescriptionCVE.org
Description
A privileged admin user who can edit an affected landing page can store arbitrary HTML/JavaScript in an HTML block, and the public page renders it with html_safe and no output escaping.
Technical description
This issue lets any admin who can edit an affected landing page store arbitrary HTML and JavaScript in an HTML block. The block is then rendered back through Decidim::ContentBlocks::HtmlCell#html_content without a sanitization boundary, so the script executes later in visitor's browsers.
<img width="1541" height="439" alt="decidim-html-xss-01" src="https://github.com/user-attachments/assets/acae1c06-8acb-49be-ab12-aabae33190ce" />
<img width="1540" height="752" alt="decidim-html-xss-02" src="https://github.com/user-attachments/assets/a2f1fa7f-03f3-4d17-b58b-f4db865443e9" />
Impact
- A user with landing-page editing rights for an affected scope can persist JavaScript that executes in visitor's browsers on that page.
- Because exploitation already requires privileged administrative access, the practical risk is lower than a participant-controlled or unauthenticated stored XSS. It still creates a browser-execution primitive in a trusted admin-editable surface.
Patches
See https://github.com/decidim/decidim/pull/16451
Workarounds
Do not give admin permissions to non-trustful users.
Reference
Stored XSS
Credits
This issue was discovered in a security audit organized by the Decidim Association and made by Radically Open Security against Decidim financed by NGI.
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.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-54251
GHSA-533c-2vh9-4r86
NVD
CVE.org
EPSS
VulDB
Exploit-DB