CVE-2022-24899: Cross site scripting via canonical tag

Published May 5, 2022
·
Updated

Impact

Untrusted users can inject malicious code into the canonical tag, which is then executed on the web page (front end).

Patches

Update to Contao 4.13.3.

Workarounds

Disable canonical tags in the root page settings.

References

https://contao.org/en/security-advisories/cross-site-scripting-via-canonical-url

For more information

If you have any questions or comments about this advisory, open an issue in contao/contao.

Other sources

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.

Affected Software

5 affected componentsFixes available
composer/contao/contao>=4.13.0, <4.13.3
composer/contao/core-bundle>=4.13.0, <4.13.3
composer/contao/contao>=4.13.0<4.13.3
4.13.3
composer/contao/core-bundle>=4.13.0<4.13.3
4.13.3
Contao Contao>=4.13.0<=4.13.2

Event History

May 5, 2022
Advisory Published
06:38 AM
CVE Published
via MITRE·11:45 PM
Data Sourced
via MITRE·11:45 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is CVE-2022-24899?

CVE-2022-24899 is a vulnerability in the Contao CMS that allows for cross-site scripting via the canonical URL.

2

How severe is CVE-2022-24899?

CVE-2022-24899 has a severity level of 6.1 (high).

3

How can I fix CVE-2022-24899?

To fix CVE-2022-24899, update Contao to version 4.13.3 or later and disable canonical tags in the root page settings.

4

Where can I find more information about CVE-2022-24899?

You can find more information about CVE-2022-24899 in the Contao security advisory and the GitHub commits and advisories provided in the references.

5

What is CWE-79?

CWE-79 refers to the Cross-Site Scripting (XSS) vulnerability, which is the type of vulnerability present in CVE-2022-24899.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203