{"id":"CVE-2026-45572","aliases":["CVE-2026-45572","GHSA-533c-2vh9-4r86"],"related":[],"kind":"vulnerability","state":"published","title":"Decidim: HTML content blocks allow stored script execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"## Description\n \nA 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.\n\n## Technical description\n    \nThis 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.\n\n<img width=\"1541\" height=\"439\" alt=\"decidim-html-xss-01\" src=\"https://github.com/user-attachments/assets/acae1c06-8acb-49be-ab12-aabae33190ce\" />\n\n<img width=\"1540\" height=\"752\" alt=\"decidim-html-xss-02\" src=\"https://github.com/user-attachments/assets/a2f1fa7f-03f3-4d17-b58b-f4db865443e9\" />\n\n\n### Impact\n\n- A user with landing-page editing rights for an affected scope can persist JavaScript that executes in visitor's browsers on that page.\n- 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.\n\n### Patches\n\nSee https://github.com/decidim/decidim/pull/16451 \n\n### Workarounds\n\nDo not give admin permissions to non-trustful users. \n\n### Reference\n\nStored XSS\n\n### Credits\n\nThis issue was discovered in a security audit organized by the [Decidim Association](https://decidim.org) and made by [Radically Open Security](https://www.radicallyopensecurity.com/) against Decidim financed by [NGI](https://ngi.eu/).","format":"markdown","source":"ghsa"}],"published":"2026-07-13T17:18:12.000Z","modified":"2026-09-08T20:51:43.490Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"version":"< 0.30.9","status":"affected"},{"version":">= 0.31.0.rc1, < 0.31.5","status":"affected"},{"version":">= 0.32.0.rc1, < 0.32.0","status":"affected"}],"vendor":"decidim","product":"decidim","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.30.9"}],"ecosystem":"RubyGems","package":"decidim-core","purl":"pkg:gem/decidim-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.31.0.rc1","status":"affected","fixed":"0.31.5"}],"ecosystem":"RubyGems","package":"decidim-core","purl":"pkg:gem/decidim-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0.32.0.rc1","status":"affected","fixed":"0.32.0"}],"ecosystem":"RubyGems","package":"decidim-core","purl":"pkg:gem/decidim-core","source":"ghsa"}],"references":[{"url":"https://github.com/decidim/decidim/security/advisories/GHSA-533c-2vh9-4r86","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/decidim/decidim/pull/16451","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/decidim/decidim","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-07T15:24:49.896Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45572","url":"https://www.cve.org/CVERecord?id=CVE-2026-45572","licence":"CVE Terms of Use","modified":"2026-08-07T17:09:19.361Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-533c-2vh9-4r86","url":"https://github.com/advisories/GHSA-533c-2vh9-4r86","licence":"CC-BY-4.0","modified":"2026-07-13T17:41:46.531Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45572","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45572","licence":"Public domain","modified":"2026-09-08T20:51:43.490Z"}],"updatedAt":"2026-11-25T22:59:31.359Z","epss":{"score":0.0018,"percentile":0.07923,"date":"2026-12-01T12:00:22.000Z"}}