CVE-2024-5520 Cross-Site Scripting stored in Alkacon OpenCMS
Privileged users can inject malicious JavaScript via the title field in OpenCMS, enabling cross-site scripting attacks.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-5520?
CVE-2024-5520 is a medium-severity cross-site scripting vulnerability in Alkacon OpenCMS, published on 30 May 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Two Cross-Site Scripting vulnerabilities have been discovered in Alkacon's OpenCMS affecting version 16, which could allow a user with sufficient privileges to create and modify web pages through the admin panel, can execute malicious JavaScript code, after inserting code in the “title” field.
Weakness: CWE-79
Which versions are affected by CVE-2024-5520?
2 open source packages ship an affected version, including org.opencms:opencms-core. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.opencms:opencms-core Maven | From 16.0 | 17.0 |
org.opencms:opencms-core Maven | From 16.0 | 17.0 |
Products include Alkacon Opencms.
How do I fix CVE-2024-5520?
Upgrade org.opencms:opencms-core to 17.0 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-5520 being exploited?
There is no known exploitation of CVE-2024-5520 in the wild and no public exploit code.
Other vulnerabilities in Alkacon OpenCMS
Sources
Also known as GHSA-vg6x-pchq-98mg.