CVE-2022-24899 Cross site scripting via canonical tag
Attackers can inject malicious scripts into the canonical tag of Contao CMS websites, potentially executing code in victim browsers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-24899?
CVE-2022-24899 is a high-severity cross-site scripting vulnerability in contao, published on 5 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Contao is a powerful open source CMS that allows you to create professional websites and scalable web applications. In versions of Contao prior to 4.13.3 it is possible to inject code into the canonical tag. As a workaround users may disable canonical tags in the root page settings.
Weakness: CWE-79
Which versions are affected by CVE-2022-24899?
4 open source packages ship an affected version, including contao/contao and contao/core-bundle. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
contao/contao Packagist | From 4.13.0 | 4.13.3 |
contao/contao Packagist | From 4.13.0 | 4.13.3 |
contao/core-bundle Packagist | From 4.13.0 | 4.13.3 |
contao/core-bundle Packagist | From 4.13.0 | 4.13.3 |
Products include Contao Contao.
How do I fix CVE-2022-24899?
Upgrade contao/contao to 4.13.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-2022-24899 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24899 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in contao
- CVE-2022-26265 Remote Code Execution in Contao Managed Edition
- CVE-2019-11512 Contao SQL injection in the file manager
- CVE-2012-4383 Contao core SQL Injection Vulnerability
- CVE-2019-19745 Unrestricted file uploads in Contao
- CVE-2024-28235 Contao possible cookie sharing with external domains while checking protected pages for broken links
Sources
Also known as GHSA-m8x6-6r63-qvj2.