CVE-2024-45612: Contao affected by insert tag injection via canonical URL
Impact It is possible to inject insert tags in canonical URLs which will be replaced when the page is rendered. Patches Update to Contao 4.13.49, 5.3.15 or 5.4.3. Workarounds Disable canonical tags in the settings of the website root page.
Published Sep 17, 2024 · Updated Sep 23, 2024
Affected packages
contao/core-bundle
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.13.0, < 4.13.49
- Fixed in
- 4.13.49
- Check
composer show contao/core-bundle
contao/core-bundle
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.0.0, < 5.3.15
- Fixed in
- 5.3.15
- Check
composer show contao/core-bundle
contao/core-bundle
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.4.0, < 5.4.3
- Fixed in
- 5.4.3
- Check
composer show contao/core-bundle
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
It is possible to inject insert tags in canonical URLs which will be replaced when the page is rendered.
Patches
Update to Contao 4.13.49, 5.3.15 or 5.4.3.
Workarounds
Disable canonical tags in the settings of the website root page.
References
https://contao.org/en/security-advisories/insert-tag-injection-via-canonical-urls
For more information
If you have any questions or comments about this advisory, open an issue in contao/contao.
Credited to aschempp.
References
- https://github.com/contao/contao/security/advisories/GHSA-2xpq-xp6c-5mgj
- https://github.com/contao/contao/commit/1c28e9ac7a7b915134962a59681a8701a44ccbe2
- https://github.com/contao/contao/commit/d105224e14ddc84f27cd8802b553369decdcbe66
- https://github.com/contao/contao/commit/ffe05cda5310dc2bd259d1391197f3849dab8590
- https://contao.org/en/security-advisories/insert-tag-injection-via-canonical-urls
- https://nvd.nist.gov/vuln/detail/CVE-2024-45612
- https://github.com/advisories/GHSA-2xpq-xp6c-5mgj
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-104882
contao/core-bundle: Improper access control in the CSV import wizard
medium6.5Nov 20, 2026CVE-2026-104883
contao/core-bundle: Non-admin users can self-grant permissions that implicitly make them administrators
high7.2Nov 20, 2026CVE-2026-104884
contao/core-bundle: Cross-site scripting in the frontend search results
medium5.4Nov 20, 2026CVE-2026-107842
Contao: Protected page content is disclosed to anonymous visitors after contao.search.index_protected is disabled
medium5.3Oct 9, 2026CVE-2026-107843
Contao: The registration module re-sends activation mails
medium5.3Oct 9, 2026CVE-2026-107844
Contao: Path traversal in the images controller
medium5.3Oct 9, 2026
