CVE-2024-27186 [20240803] - Core - XSS in HTML Mail Templates

Medium 6.1 Published Updated

Attackers can inject malicious scripts via HTML mail templates in Joomla, potentially leading to session hijacking or code execution.

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

What is CVE-2024-27186?

CVE-2024-27186 is a medium-severity cross-site scripting vulnerability in Joomla Joomla\!, published on 20 Aug 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

The mail template feature lacks an escaping mechanism, causing XSS vectors in multiple extensions.

Weakness: CWE-79

Which versions are affected by CVE-2024-27186?

1 open source package ship an affected version, including joomla. It affects 1 product.

PackageAffectedFixed in
joomla BitnamiFrom 4.0.05.1.3

Products include Joomla Joomla\!.

How do I fix CVE-2024-27186?

Upgrade joomla to 5.1.3 or later.

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-27186 being exploited?

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

All Joomla Joomla\! vulnerabilities

Sources

Also known as BIT-joomla-2024-27186, GHSA-2mh3-x6j9-j554.

Is CVE-2024-27186 in your software?

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

Check your SBOMs for free