Skip to main content

decidim-elections EUVDEUVD-2026-78669

| CVE-2026-44282 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-09-09 https://github.com/decidim/decidim GHSA-9mvp-w4rr-5c6x
4.8
CVSS 3.1 · Vendor: https://github.com/decidim/decidim
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain election-editor or process-scoped admin credentials
  2. Delivery
    Access election question editor via admin UI
  3. Exploit
    Save script payload as question.body field
  4. Install
    Payload persisted to database without sanitization
  5. C2
    Public voter visits election page or voting booth
  6. Execute
    question_title helper returns payload via html_safe
  7. Impact
    Arbitrary 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 <script> payload or injected event-handler attribute. From that point forward, every public visitor and voter who opens the election page or enters the voting booth triggers the stored script in their browser, enabling session-token exfiltration, credential-harvesting overlays, or vote-page tampering. No exploit code has been publicly released, but the technique is trivially reproducible from the advisory description.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

decidim < 0.32.0

Affected Packages

rubygems decidim-elections fix: 0.32.0
euvd decidim fix: 0.32.0

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

Vendor (https://github.com/decidim/decidim) PRIMARY 4.8 MEDIUM
AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 4.8 MEDIUM

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.

3.1 AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (https://github.com/decidim/decidim).

CVSS VectorVendor: https://github.com/decidim/decidim

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

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

EPSS Score
0.4%
Top 70% exploitable
Prevalence
Low
niche civic participatory-democracy platform, limited municipal and NGO deployment
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy