CVE-2024-27095 Decidim cross-site scripting (XSS) in the admin panel

Medium 5.4 Published Updated

An attacker can execute arbitrary scripts in the Decidim admin panel by modifying uploaded records, potentially compromising administrator accounts.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-27095?

CVE-2024-27095 is a medium-severity cross-site scripting vulnerability in decidim, published on 10 Jul 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

Decidim is a participatory democracy framework. The admin panel is subject to potential XSS attach in case the attacker manages to modify some records being uploaded to the server. This vulnerability is fixed in 0.27.6 and 0.28.1.

Weakness: CWE-79

Which versions are affected by CVE-2024-27095?

4 open source packages ship an affected version, including decidim-admin. It affects 1 product.

PackageAffectedFixed in
decidim-admin RubyGemsAll versions0.27.6
decidim-admin RubyGemsAll versions0.27.6
decidim-admin RubyGemsFrom 0.28.0.rc10.28.1
decidim-admin RubyGemsFrom 0.28.0.rc10.28.1

Products include Decidim Decidim.

How do I fix CVE-2024-27095?

Upgrade decidim-admin to a fixed version for your release line: 0.27.6 or 0.28.1.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-27095 being exploited?

There is no known exploitation of CVE-2024-27095 in the wild and no public exploit code.

Sources

Also known as GHSA-529p-jj47-w3m3.

Is CVE-2024-27095 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free