CVE-2026-107845: Contao: Cross-site scripting in the comments bundle

Published Oct 9, 2026
·
Updated

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. 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.

Other sources

Contao is an Open Source CMS. From version 4.0.0 until 5.3.50 and 5.7.12, an unauthenticated visitor can submit a comment whose email or website metadata is rendered without sufficient attribute and URL encoding by listComments() in comments-bundle/contao/dca/tlcomments.php. When a backend user opens the Comments module, attacker-controlled script can execute in the Contao backend origin under that user's session. Unpublished comments remain visible to moderators, so moderation does not prevent exposure. This issue is fixed in versions 5.3.50 and 5.7.12.

— MITRE

Affected Software

3 affected componentsFixes available
Contao Contao>=4.0.0<5.3.50, >=5.7.0<5.7.12
composer/contao/comments-bundle>=5.4.0-RC1<5.7.12
5.7.12
composer/contao/comments-bundle>=4.0.0<5.3.50
5.3.50

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/contao/comments-bundle to a version that resolves this vulnerability.

    Fixed in 5.7.12
  2. Upgrade

    Upgrade composer/contao/comments-bundle to a version that resolves this vulnerability.

    Fixed in 5.3.50
  3. Upgrade

    Upgrade Contao to a version that resolves this vulnerability.

    Fixed in 5.3.50
  4. Upgrade

    Upgrade Contao to a version that resolves this vulnerability.

    Fixed in 5.7.12

Event History

Oct 9, 2026
CVE Published
via MITRE·07:29 PM
Data Sourced
via MITRE·07:29 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·08:17 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·08:53 PM
Data Sourced
via GitHub·08:53 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Contao installations running versions from 4.0.0 through versions before 5.3.50 or 5.7.12 are affected. The exposed users are backend users who open the Comments module after an attacker submits a crafted comment.

2

What does an attacker need to exploit it?

An attacker does not need authentication. They need to submit a comment containing malicious content in the email or website metadata and induce a backend user to view the Comments module.

3

Does comment moderation prevent exploitation?

No. Unpublished comments are still visible to moderators, so a crafted comment can execute script when a moderator reviews it.

4

What versions fix the issue?

The issue is fixed in Contao 5.3.50 and 5.7.12.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203