Critical

Contao: Cross-site scripting in the comments bundle

  • Disclosed: 09.10.2026
  • Updated: 11.10.2026 10:32

An unauthenticated front end visitor can post a comment containing an 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. From there the payload acts as that user through the back end: reading any module they can reach, creating a new administrator, or editing a template, which on Contao is a documented path from back end write access to code execution. Moderation does not help and in fact guarantees exposure, since unpublished comments are still inserted and a moderator has to open the list to act on them.

What to do

Update contao/comments-bundle to version 5.3.50, 5.7.12, or later.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package contao/comments-bundle >= 4.0.0, < 5.3.50, >= 5.4.0-RC1, < 5.7.12 5.3.50, 5.7.12

References

CVSS score 9.3/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
Weakness (CWE)
CWE-116, CWE-79
Platform
Composer
Package
contao/comments-bundle
Disclosed
09.10.2026
Updated
11.10.2026 10:32

Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.

OSV / GitHub Advisory Database - GHSA-628f-v4f6-p37r - CC BY 4.0

Vulnerability history: contao/comments-bundle

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
04.2024 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 1
  • Medium 1

Disclosures per year

  1. 2024: 1
  2. 2025: 0
  3. 2026: 1
  1. Contao: Cross-site scripting in the comments bundle this entry
    Critical · 9.3 CVE-2026-107845 >= 4.0.0, < 5.3.50, >= 5.4.0-RC1, < 5.7.12 5.3.50, 5.7.12
  2. Medium · 4.3 CVE-2024-28234 >= 2.0.0, < 4.13.40, >= 5.0.0-RC1, < 5.3.4 4.13.40, 5.3.4

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.