Contao: Cross-site scripting in the comments bundle
Critical severity. Published 9 October 2026. Update contao/comments-bundle to the fixed version of your branch (5.3.50, 5.7.12): composer update contao/comments-bundle.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| contao/comments-bundle (opens in a new tab) | >= 4.0.0, < 5.3.50 | >= 5.4.0-RC1, < 5.7.12 | 5.3.50, 5.7.12 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show contao/comments-bundle
composer auditAdvisory details
| Severity | CriticalCVSS 9.3 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-107845 (opens in a new tab) |
| GHSA | GHSA-628f-v4f6-p37r (opens in a new tab) |
| Weakness | CWE-79, CWE-116 |
What the advisory says
An unauthenticated front end visitor can post a comment containing a XSS injection. The victim is any back end user who opens the Comments module, and moderation makes exposure certain rather than preventing it. No Content-Security-Policy header is sent on the Contao back end, so nothing mitigates the inline handler.
Impact
Anyone on the internet can inject script that executes in the Contao back end origin, under the session of whichever user opens the Comments module, with no click and no hover.
Source: GHSA-628f-v4f6-p37r (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .