CVE-2025-65961: Contao is vulnerable to cross-site scripting in templates
Impact It is possible to inject code into the template output that will be executed in the browser in the front end and back end. Patches Update to Contao 4.13.57, 5.3.42 or 5.6.5. Workarounds Do not use the affected templates or patch them manually. Refsources https://contao.org/en/security-advisories/cross-site-scripting-in-templates
Published Nov 25, 2025 · Updated Dec 3, 2025
Affected packages
contao/core-bundle
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.0.0, < 4.13.57
- Fixed in
- 4.13.57
- Check
composer show contao/core-bundle
contao/core-bundle
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.0.0-RC1, < 5.3.42
- Fixed in
- 5.3.42
- Check
composer show contao/core-bundle
contao/core-bundle
- Ecosystem
- Composer (PHP)
- Affected
- >= 5.4.0-RC1, < 5.6.5
- Fixed in
- 5.6.5
- Check
composer show contao/core-bundle
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
It is possible to inject code into the template output that will be executed in the browser in the front end and back end.
Patches
Update to Contao 4.13.57, 5.3.42 or 5.6.5.
Workarounds
Do not use the affected templates or patch them manually.
Refsources
https://contao.org/en/security-advisories/cross-site-scripting-in-templates
Credited to ausi, m-vo.
References
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
