decidim-core
Affected
- introduced
0, fixed0.30.9(ecosystem)
Fixed versions
0.30.9
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-45572
Decidim: HTML content blocks allow stored script execution
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
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.
Medium Basis: The source's own band: MODERATE
0, fixed 0.30.9 (ecosystem)0.30.9
The export has no generic command for this ecosystem.
0.31.0.rc1, fixed 0.31.5 (ecosystem)0.31.5
The export has no generic command for this ecosystem.
0.32.0.rc1, fixed 0.32.0 (ecosystem)0.32.0
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0