Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain election-editor or process-scoped admin credentials
-
DeliveryAccess election question editor via admin UI
-
ExploitSave script payload as question.body field
-
InstallPayload persisted to database without sanitization
-
C2Public voter visits election page or voting booth
-
Executequestion_title helper returns payload via html_safe
-
ImpactArbitrary JavaScript executes in voter's browser
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to hold a process-scoped admin account or another Decidim role explicitly granted election question-management rights - these are privileged application accounts, not general public user accounts. The victim side requires that a real browser user visit the affected election page (UI:R), so the payload does not self-propagate. No special network position, non-default software configuration, or specific platform is required beyond the attacker having a legitimate admin credential and at least one published election with a compromised question. What limits exploitation: (1) the PR:H barrier - external attackers without a legitimate admin credential cannot trigger the storage path; (2) victim interaction - automated scanners do not execute stored scripts; (3) scope is bounded to the elections component - other Decidim modules are not affected by this specific helper. |
| Impact | The provided CVSS vector (AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N, score 4.8) accurately captures the key risk parameters: exploitation requires high privileges (a legitimately credentialed election-editor or process-scoped admin), and real-world harm requires a victim browser to load the affected page. The scope-change (S:C) flag is significant - the payload executes in the security context of ordinary public voters, not the privileged admin who created it. The practical risk is therefore highly deployment-specific: organizations that grant election-editor access only to fully trusted staff face negligible risk, while those that delegate this role more broadly face meaningful exposure on civic-facing voting pages. No EPSS data was provided and no CISA KEV listing exists, so exploitation frequency cannot be quantified; the absence of a public exploit keeps real-world risk modest at present. The civic sensitivity of elections infrastructure - where voter trust and ballot integrity are paramount - is a qualitative amplifier not reflected in the numeric score. |
| Exploit ScenarioDerived | An attacker holding a process-scoped admin or election-editor account edits an election question and saves a title containing a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Stored XSS in the decidim-elections Ruby gem (versions before 0.32.0) allows a process-scoped admin or election editor with question-management rights to persist arbitrary JavaScript in election question body fields, which subsequently executes in the browsers of all public visitors and voters accessing affected election pages. The root cause is the question_title helper in application_helper.rb returning question.body marked .html_safe without any sanitization boundary, bypassing Rails' automatic HTML escaping. No public exploit code and no active exploitation (CISA KEV) have been identified; the issue was discovered through a formal security audit commissioned by the Decidim Association.
RemediationAI
Upgrade decidim-elections to version 0.32.0 or later, which removes the .html_safe call from the question_title helper (see PR https://github.com/decidim/decidim/pull/16659 and advisory https://github.com/decidim/decidim/security/advisories/GHSA-9mvp-w4rr-5c6x). If an immediate upgrade is not feasible, restrict election question-management access exclusively to fully trusted administrators - this is the only access-control workaround available, and it trades operational flexibility for risk reduction. There is no network-level control that would prevent a stored payload from rendering to end users once it is persisted, making the upgrade the only complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 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
The vulnerability resides in the decidim-elections Ruby gem (pkg:rubygems/decidim-elections), an elections component of the Decidim open-source participatory democracy platform. The affected code is in decidim-elections/app/helpers/decidim/elections/application_helper.rb within the question_title method, which returned title.html_safe - Rails' mechanism for bypassing automatic output encoding - without any prior sanitization. The translatable question.body string is stored verbatim by the election question editor, and because the helper marks it as safe HTML, any markup or script payload survives the full storage-to-render cycle intact. CWE-79 (Improper Neutralization of Input During Web Page Generation) covers this class of flaw. The XSS payload renders on both the public elections listing page and the voting booth screens. The one-line fix in PR #16659 removes the .html_safe call, causing Rails to auto-escape the string before insertion into the DOM.
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 the required election-editor admin role; S:C because payload executes in victims' browser context; UI:R for victim page visit; no availability impact.
Primary rating from Vendor (https://github.com/decidim/decidim).
CVSS VectorVendor: https://github.com/decidim/decidim
DescriptionCVE.org
Description
A low-privilege process-scoped admin who can manage elections can store arbitrary HTML in the question statement/body without sanitization, and the public elections UI renders that value unsafely.
Technical description
This stored XSS appears because election question titles are rendered as trusted HTML instead of sanitized text. The election question editor stores question.body as a normal translatable string, and the public helper question_title returns that value with html_safe and no sanitization boundary, so any user who can edit election questions can persist markup or script-bearing payloads that later render on public election pages.
<img width="1506" height="1285" alt="decidim-election-01" src="https://github.com/user-attachments/assets/2e17f396-10f9-4423-bb97-5badbdb20d21" /> <img width="1540" height="657" alt="decidim-election-02" src="https://github.com/user-attachments/assets/178adb7b-d00e-4b5d-9237-f391e523973f" />
Impact
A low-privilege process-scoped admin or other election editor with question-management rights can persist JavaScript that executes in visitor's browsers on public election pages and voting booth screens.
Patches
See https://github.com/decidim/decidim/pull/16659
Workarounds
Developers should review their implementation's administrator accesses and not give access to untrustworthy users
Resources
OWASP XSS Injection
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.
EUVD-2026-78669
GHSA-9mvp-w4rr-5c6x
NVD
CVE.org
EPSS
Exploit-DB