CVE-2026-107845 — Contao: Cross-site scripting in...
Contao: Cross-site scripting in the comments bundle
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.
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 require "contao/comments-bundle:^5.3.50"
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).
| Package | Fixed 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.
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N
References
- https://github.com/contao/contao/security/advisories/GHSA-628f-v4f6-p37rWEB
- https://github.com/contao/contao/commit/22505d5f79bc1a7f52e2cba5fddf6007e1f0408aWEB
- https://github.com/contao/contaoPACKAGE
- https://github.com/contao/contao/releases/tag/5.3.50WEB
- https://github.com/contao/contao/releases/tag/5.7.12WEB
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
Maximum impact if exploited, often with little effort or access required.
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
Related CVEs
- CVE-2026-63412CRITICAL
Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)
- CVE-2026-63413CRITICAL
Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)