CVE-2023-31045 Cross-site Scripting in Backdrop CMS
Remote attackers can inject arbitrary scripts via the name parameter in Backdrop CMS, potentially leading to code execution or account takeover when admins edit content.
- 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-2023-31045?
CVE-2023-31045 is a medium-severity cross-site scripting vulnerability in n/a, published on 24 Apr 2023. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
A stored Cross-site scripting (XSS) issue in Text Editors and Formats in Backdrop CMS before 1.24.2 allows remote attackers to inject arbitrary web script or HTML via the name parameter. When a user is editing any content type (e.g., page, post, or card) as an admin, the stored XSS payload is executed upon selecting a malicious text formatting option. NOTE: the vendor disputes the security relevance of this finding because "any administrator that can configure a text format could easily allow Full HTML anywhere."
Weakness: CWE-79
Which versions are affected by CVE-2023-31045?
2 open source packages ship an affected version, including backdrop/backdrop. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
backdrop/backdrop Packagist | All versions | 1.24.2 |
backdrop/backdrop Packagist | All versions | 1.24.2 |
Products include Backdropcms Backdrop Cms.
How do I fix CVE-2023-31045?
Upgrade backdrop/backdrop to 1.24.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-2023-31045 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-31045 exists.
Other vulnerabilities in n/a
Sources
Also known as GHSA-3862-c622-v4fp.