Description
Decidim is a participatory democracy framework. Prior to 0.30.9, from 0.31.0 before 0.31.5, and in 0.32.0.rc1 before 0.32.0.rc2, an administrator with landing-page editing privileges can store arbitrary HTML and JavaScript in an HTML content block, which Decidim::ContentBlocks::HtmlCell#html_content renders without sanitization, causing the script to execute in visitors' browsers. This issue is fixed in versions 0.30.9, 0.31.5, and 0.32.0.rc2.
Published: 2026-08-06
Score: 4.8 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An administrator with landing‑page editing privileges in Decidim can store arbitrary HTML and JavaScript in an HTML content block, which is rendered without sanitization. A visitor that loads the landing page receives the injected script in their browser, enabling a stored cross‑site scripting attack.

Affected Systems

Decidim versions prior to 0.30.9, 0.31.5, and 0.32.0.rc2 are impacted. Affected builds include 0.30.x before 0.30.9, 0.31.x before 0.31.5, and the first release candidate 0.32.0.rc1 before 0.32.0.rc2. The vulnerability exists in the Decidim participatory democracy framework supplied by the vendor decidim:decidim.

Risk and Exploitability

The CVSS score of 4.8 indicates moderate risk; the EPSS score is unavailable, and the vulnerability is not listed in the CISA KEV catalog. The attack vector requires an administrator with editing rights, making it an internal privilege misuse or compromise of an administrator account. Once the malicious content block is created, it is served to every visitor, making exploitation trivial once the initial privilege is granted. No external network access or privilege escalation is required.

Generated by OpenCVE AI on August 7, 2026 at 01:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Decidim to version 0.30.9, 0.31.5, or 0.32.0.rc2 or later where the HTML content block sanitization is fixed.
  • Audit existing content blocks for malicious scripts and remove or sanitize any that remain if the upgrade cannot be performed immediately.
  • Restrict landing‑page editing privileges to trusted administrators only, enforcing role‑based access control to minimise the attack surface.
  • Implement a Content Security Policy that disallows inline JavaScript and scripts from unknown sources as an additional safeguard while waiting for the patch.

Generated by OpenCVE AI on August 7, 2026 at 01:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-533c-2vh9-4r86 Decidim: HTML content blocks allow stored script execution
History

Fri, 07 Aug 2026 02:00:00 +0000

Type Values Removed Values Added
First Time appeared Decidim
Decidim decidim
Vendors & Products Decidim
Decidim decidim

Thu, 06 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Description Decidim is a participatory democracy framework. Prior to 0.30.9, from 0.31.0 before 0.31.5, and in 0.32.0.rc1 before 0.32.0.rc2, an administrator with landing-page editing privileges can store arbitrary HTML and JavaScript in an HTML content block, which Decidim::ContentBlocks::HtmlCell#html_content renders without sanitization, causing the script to execute in visitors' browsers. This issue is fixed in versions 0.30.9, 0.31.5, and 0.32.0.rc2.
Title Decidim: HTML content blocks allow stored script execution
Weaknesses CWE-94
References
Metrics cvssV3_1

{'score': 4.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-06T20:10:54.774Z

Reserved: 2026-05-12T19:00:14.600Z

Link: CVE-2026-45572

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-07T01:45:05Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')