# Contao: Cross-site scripting in the comments bundle

Critical severity, published 2026-10-09. Update contao/comments-bundle to the fixed version of your branch (5.3.50, 5.7.12): composer update contao/comments-bundle.

Canonical URL: https://buzzphp.com/security/ghsa-628f-v4f6-p37r · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | critical (CVSS 9.3) |
| Published | 2026-10-09 |
| Updated | 2026-10-09 |
| CVE | [CVE-2026-107845](https://nvd.nist.gov/vuln/detail/CVE-2026-107845) |
| GHSA | [GHSA-628f-v4f6-p37r](https://github.com/advisories/GHSA-628f-v4f6-p37r) |
| Weakness | CWE-79, CWE-116 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| contao/comments-bundle | >= 4.0.0, < 5.3.50 or >= 5.4.0-RC1, < 5.7.12 | 5.3.50, 5.7.12 |

## What to do

Update contao/comments-bundle to the fixed version of your branch (5.3.50, 5.7.12): composer update contao/comments-bundle.

Check which version you run with `composer show contao/comments-bundle`, and every affected package with `composer audit`.

## About this advisory

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.

## Links

- [GHSA-628f-v4f6-p37r on GitHub](https://github.com/advisories/GHSA-628f-v4f6-p37r)
- [CVE-2026-107845 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-107845)
- [All Composer security advisories](https://buzzphp.com/security)
