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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.47%). Schedule for your next planned update.

Does your project use an affected contao/comments-bundle version?

Paste your composer.lock to check it for CVE-2026-107845 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

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 (48 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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: Packagist (1).

PackageFixed In
contao/comments-bundle Packagist · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+387 more)5.3.50
contao/comments-bundle Packagist · Affected: 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. It has a 0.5% probability of exploitation within 30 days (EPSS score). 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

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.47%
EPSS percentile: 33.3

This is a below-median EPSS score — only 33.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-628f-v4f6-p37r

Related CVEs

  • CVE-2026-63412
    CRITICAL

    Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)

  • CVE-2026-63413
    CRITICAL

    Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock