CVE-2024-41673: Decidim has a cross-site scripting vulnerability in the version control page
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.27072%
CWE
Published
10/1/2024
Updated
10/3/2024
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
decidim | rubygems | <= 0.27.7 | 0.27.8 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key issues: 1) Missing output encoding in the version cell's translation method (i18n) allowed XSS payload execution. 2) Lack of input validation on the version ID parameter enabled script injection through malformed URLs. The patch adds HTML escaping in the i18n
method and enforces integer conversion of the ID parameter, addressing both the injection vector and rendering vulnerability. The test cases added in spec files demonstrate protection against exactly this XSS pattern.