Loading...
Skip to main content

CVE-2026-107845 — Contao: Cross-site scripting in...

CRITICAL

Contao: Cross-site scripting in the comments bundle

Published October 9, 2026Updated October 9, 2026Source: osv

Summary

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.

Advisory Timeline

  • First published October 9, 2026 (2 days ago).
  • Last revised October 9, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update contao/comments-bundle to 5.3.50 or later
composer require "contao/comments-bundle:^5.3.50"
Composer
Update contao/comments-bundle to 5.7.12 or later
composer require "contao/comments-bundle:^5.7.12"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
contao/comments-bundle
packagist
4.0.0, 4.0.1, 4.0.2, 4.0.3 (+387 more)5.3.50
contao/comments-bundle
packagist
5.4.0, 5.4.0-RC1, 5.4.0-RC2, 5.4.0-RC3 (+67 more)5.7.12

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-116
    Improper Encoding or EscapingMITRE
  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2026-107845?
Contao: Cross-site scripting in the comments bundle This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.3/10).
How do I check if my project is affected by CVE-2026-107845?
CVE-2026-107845 affects contao/comments-bundle. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-107845 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.3

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-628f-v4f6-p37r

Related CVEs

  • CVE-2026-75827
    CRITICAL

    Grav: Blueprint dynamic-data bare-function branch is denylist-gated and omits error_log, giving arbitrary file write

  • CVE-2026-92161
    CRITICAL

    FriendsOfFlarum OAuth: Unauthenticated account takeover via unverified email trust in Discord OAuth provider

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies