CVE-2024-45406 Craft CMS stored XSS in breadcrumb list and title fields

Medium 5.5 Published Updated

Attackers can inject malicious scripts via breadcrumb and title fields in Craft CMS, potentially compromising user sessions.

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

What is CVE-2024-45406?

CVE-2024-45406 is a medium-severity cross-site scripting vulnerability in Craftcms Craft Cms, published on 9 Sep 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Craft is a content management system (CMS). Craft CMS 5 stored XSS can be triggered by the breadcrumb list and title fields with user input.

Weakness: CWE-80, CWE-79

Which versions are affected by CVE-2024-45406?

2 open source packages ship an affected version, including craftcms/cms. It affects 1 product.

PackageAffectedFixed in
craftcms/cms PackagistFrom 5.0.05.1.2
craftcms/cms PackagistFrom 5.0.05.1.2

Products include Craftcms Craft Cms.

How do I fix CVE-2024-45406?

Upgrade craftcms/cms to 5.1.2 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-45406 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-45406 exists.

All Craftcms Craft Cms vulnerabilities

Sources

Also known as GHSA-28h4-788g-rh42.

Is CVE-2024-45406 in your software?

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

Check your SBOMs for free