Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.2
CVE-2022-24899: Contao allows attackers to insert malicious code via canonical tag
CVE-2022-24899 · published 4 years ago
Summary
Versions of Contao before 4.13.3 let a user add unwanted code into the page's canonical tag, which can cause harmful scripts to run in a visitor's browser. This could allow an attacker to steal data or manipulate what the user sees. Upgrade Contao to version 4.13.3 or newer, or temporarily turn off canonical tags in the root page settings until you can update.
What to do
- Update contao core-bundle to version 4.13.3.
- Update contao contao to version 4.13.3.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| composer | contao | core-bundle |
>= 4.13.0, < 4.13.3 Fix: upgrade to 4.13.3
|
| composer | contao | contao |
>= 4.13.0, < 4.13.3 Fix: upgrade to 4.13.3
|
| – | contao | contao |
>= 4.13.0, <= 4.13.2 cpe:2.3:a:contao:contao:*:*:*:*:*:*:*:* |
Original advisory text
Cross site scripting via canonical tag
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.
References
- https://github.com/contao/contao/security/advisories/GHSA-m8x6-6r63-qvj2 Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-24899 Vendor Advisory
- https://github.com/contao/contao/commit/199206849a87ddd0fa5cf674eb3c58292fd8366c Patch
- https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/contao/CV...
- https://github.com/FriendsOfPHP/security-advisories/blob/master/contao/core-bund...
- https://github.com/advisories/GHSA-m8x6-6r63-qvj2
- https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url... Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/24xxx/CVE-2022-24899... Vendor Advisory
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Type
CWE-79Cross-site Scripting (XSS)
Timeline
Published5 May 2022
Updated24 Oct 2026
First seen6 Mar 2026
Track software like this
Free during beta