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 htmlsafe 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.
Published Jul 13, 2026
Affected packages
decidim-core
- Ecosystem
- RubyGems
- Affected
- < 0.30.9
- Fixed in
- 0.30.9
- Check
bundle info decidim-core
decidim-core
- Ecosystem
- RubyGems
- Affected
- >= 0.31.0.rc1, < 0.31.5
- Fixed in
- 0.31.5
- Check
bundle info decidim-core
decidim-core
- Ecosystem
- RubyGems
- Affected
- >= 0.32.0.rc1, < 0.32.0
- Fixed in
- 0.32.0
- Check
bundle info decidim-core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More RubyGems vulnerabilities
All RubyGems entriesCVE-2026-45377
Decidim: Private exports can be downloaded through reusable links
medium6.5Jul 13, 2026CVE-2026-45573
Decidim: Push subscriptions can be abused for server-side requests
medium6.4Jul 13, 2026CVE-2026-40869
Decidim amendments can be accepted or rejected by anyone
high7.5Apr 14, 2026CVE-2026-23891
Decidim has a cross-site scripting (XSS) in user name
critical8.7Apr 13, 2026CVE-2025-65017
Decidim's private data exports can lead to data leaks
high8.2Feb 3, 2026CVE-2023-51447
Cross-site scripting (XSS) in the dynamic file uploads
medium6.3Feb 20, 2024
