CVE-2024-45406 Craft CMS stored XSS in breadcrumb list and title fields
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.
Which versions are affected by CVE-2024-45406?
2 open source packages ship an affected version, including craftcms/cms. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
craftcms/cms Packagist | From 5.0.0 | 5.1.2 |
craftcms/cms Packagist | From 5.0.0 | 5.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.
Other vulnerabilities in Craftcms Craft Cms
Sources
Also known as GHSA-28h4-788g-rh42.