by Leo Feyer

Insert tag injection via canonical URLs

Date: 2024-09-17
CVE ID: CVE-2024-45612

It is possible to inject insert tags in canonical URLs which will be replaced when the page is rendered.

Affected versions

Contao 4.13 up to 4.13.48
Contao 5.0
Contao 5.1
Contao 5.2
Contao 5.3 up to 5.3.14
Contao 5.4 up to 5.4.2

Suggested solution

Upgrade to Contao 4.13.49, 5.3.15 or 5.4.3.

Workaround

Disable canonical tags in the settings of the website root page.

More information

https://github.com/contao/contao/security/advisories/GHSA-2xpq-xp6c-5mgj