CVE-2024-40748 [20250102] - Core - XSS vector in the id attribute of menu lists

High 7.5 Published Updated

Attackers can inject malicious scripts via the id attribute in menu lists, potentially compromising user sessions or site integrity.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-40748?

CVE-2024-40748 is a high-severity cross-site scripting vulnerability in Joomla Joomla\!, published on 7 Jan 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Lack of output escaping in the id attribute of menu lists.

Weakness: CWE-79

Which versions are affected by CVE-2024-40748?

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

PackageAffectedFixed in
joomla BitnamiFrom 3.9.05.2.3

Products include Joomla Joomla\!.

How do I fix CVE-2024-40748?

Upgrade joomla to 5.2.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-40748 being exploited?

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

All Joomla Joomla\! vulnerabilities

Sources

Also known as BIT-joomla-2024-40748, GHSA-5wmg-fqv9-w9qf.

Is CVE-2024-40748 in your software?

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

Check your SBOMs for free