CVE-2023-51447: Cross-site scripting (XSS) in the dynamic file uploads
6.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5737%
CWE
Published
2/20/2024
Updated
2/20/2024
KEV Status
No
Technology
Ruby
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| decidim | rubygems | >= 0.27.0, < 0.27.5 | 0.27.5 |
| decidim-core | rubygems | >= 0.27.0, < 0.27.5 | 0.27.5 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from multiple functions displaying user-controlled filenames without proper HTML escaping. The patch adds escaping in: 1) Ruby cell methods handling filename truncation/display 2) JavaScript upload handlers inserting filenames into DOM elements. The commit diffs show vulnerable functions were directly handling filename presentation without escaping, while tests verify XSS prevention through escaping. The functions listed were clearly modified in the security patch to add escaping utilities like decidim_html_escape and escapeHtml, confirming their role in the vulnerability.